diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-01-10 18:56:34 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-01-10 18:56:34 +0000 |
commit | 154f934b227dd665cd4a6393453601c5c400d78c (patch) | |
tree | cd40b901c2efd71ef767fb7bdd9b0477f9dc6eb1 /LUFA/Drivers/USB/HighLevel/Template/Template_Endpoint_RW.c | |
parent | f555ad7ced743a19eb1eefaf5eaf536fcbe58d80 (diff) | |
download | lufa-154f934b227dd665cd4a6393453601c5c400d78c.tar.gz lufa-154f934b227dd665cd4a6393453601c5c400d78c.tar.bz2 lufa-154f934b227dd665cd4a6393453601c5c400d78c.zip |
Call USB_USBTask() in the Endpoint stream functions between packets if INTERRUPT_CONTROL_ENDPOINT is not set. Remove calls to USB_USBTask in the Mass Storage class driver stream read/write continuation checks, since this is now done inside the stream function.
Diffstat (limited to 'LUFA/Drivers/USB/HighLevel/Template/Template_Endpoint_RW.c')
-rw-r--r-- | LUFA/Drivers/USB/HighLevel/Template/Template_Endpoint_RW.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/LUFA/Drivers/USB/HighLevel/Template/Template_Endpoint_RW.c b/LUFA/Drivers/USB/HighLevel/Template/Template_Endpoint_RW.c index 8a68d65e2..4077279cd 100644 --- a/LUFA/Drivers/USB/HighLevel/Template/Template_Endpoint_RW.c +++ b/LUFA/Drivers/USB/HighLevel/Template/Template_Endpoint_RW.c @@ -27,6 +27,10 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE Buffer, return ENDPOINT_RWSTREAM_IncompleteTransfer; } + #if !defined(INTERRUPT_CONTROL_ENDPOINT) + USB_USBTask(); + #endif + if ((ErrorCode = Endpoint_WaitUntilReady())) return ErrorCode; } |