summaryrefslogtreecommitdiff
path: root/demos/device/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-04-24 23:40:28 +0700
committerhathach <[email protected]>2014-04-24 23:40:28 +0700
commit6804fee0fa571907f9311cce4f5e65aaa569dd1a (patch)
tree9918723748113462caede6faf8ce4f2a714a14a5 /demos/device/src
parent75793bd8f3648d9dd0ff767dc2c1bf7eb8def2da (diff)
correct dcd_pipe_is_busy to use list_qtd_idx[] instead of qtd_overlay
flush usbd_queue_hdl when bus_reset add assert check for osal_queue_send increase ENUM_QUEUE_DEPTH for usbh change osal_freeRTOS.h implementation to - correctly waiting forever for semaphore wait, queue & mutex - not use ISR safe version since it is not as generic as we want
Diffstat (limited to 'demos/device/src')
-rw-r--r--demos/device/src/cdc_device_app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/device/src/cdc_device_app.c b/demos/device/src/cdc_device_app.c
index accd61547..f7ef8e58c 100644
--- a/demos/device/src/cdc_device_app.c
+++ b/demos/device/src/cdc_device_app.c
@@ -95,7 +95,7 @@ void tusbd_cdc_xfer_cb(uint8_t coreid, tusb_event_t event, cdc_pipeid_t pipe_id,
break;
case TUSB_EVENT_XFER_ERROR:
- xferred_bytes = 0; // ignore
+ tusbd_cdc_receive(0, serial_rx_buffer, CDCD_APP_BUFFER_SIZE, true); // ignore, queue transfer again
break;
case TUSB_EVENT_XFER_STALLED: