summaryrefslogtreecommitdiff
path: root/tinyusb/device/usbd.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-11-20 15:34:49 +0700
committerhathach <[email protected]>2013-11-20 15:34:49 +0700
commitd94efa60d62a6b6b1beecaf823ab67648563ea52 (patch)
tree58909fcf79f14271c97f72abda37e46fbfe485ce /tinyusb/device/usbd.c
parent850fcf03f09c635015ba5b40b2ed8c303dce27ef (diff)
fixed dcd lpc17xx queue transfer & IOC handling
able to run MSC demo
Diffstat (limited to 'tinyusb/device/usbd.c')
-rw-r--r--tinyusb/device/usbd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tinyusb/device/usbd.c b/tinyusb/device/usbd.c
index 5850d0e26..328b881ea 100644
--- a/tinyusb/device/usbd.c
+++ b/tinyusb/device/usbd.c
@@ -178,8 +178,9 @@ tusb_error_t usbd_body_subtask(void)
length -= USBD_COTNROL_MAX_LENGTH_EACH_XFER;
p_buffer += USBD_COTNROL_MAX_LENGTH_EACH_XFER;
+
+ usbd_devices[coreid].is_waiting_control_xfer = false;
}
- usbd_devices[coreid].is_waiting_control_xfer = false;
#endif
if ( TUSB_ERROR_NONE == error )