summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-10-31 21:14:06 +0700
committerhathach <[email protected]>2019-10-31 21:14:06 +0700
commitcacbb80a9031662074c12652cbec32b491d78507 (patch)
treee6f8f575794e92b9b871dc064299c9e406f88ba5 /src/device/usbd.c
parent6067adcd08df5eabcfb99cd62611835dc1738c90 (diff)
zlp should work with control in, tested with Unity framework
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 2d2f1cafd..0b9713e94 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -404,7 +404,6 @@ void tud_task (void)
if ( 0 == epnum )
{
- // control transfer DATA stage callback
usbd_control_xfer_cb(event.rhport, ep_addr, event.xfer_complete.result, event.xfer_complete.len);
}
else
@@ -869,10 +868,6 @@ void dcd_event_handler(dcd_event_t const * event, bool in_isr)
break;
case DCD_EVENT_XFER_COMPLETE:
- // skip zero-length control status complete event, should DCD notify us.
- // TODO could cause issue with actual zero length data used by class such as DFU
- if ( (0 == tu_edpt_number(event->xfer_complete.ep_addr)) && (event->xfer_complete.len == 0) ) break;
-
osal_queue_send(_usbd_q, event, in_isr);
TU_ASSERT(event->xfer_complete.result == XFER_RESULT_SUCCESS,);
break;