diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-07-25 01:11:24 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-07-25 01:11:24 +0000 |
commit | 5c274d106b8b30403ce8742056518ce33f397ed2 (patch) | |
tree | afda36c72af78c36df983d2ca5acda3f528cef04 /LUFA/Drivers/USB/Core/UC3/Template | |
parent | 110711598af766ef5da7aaf183d0c4886beb8fb7 (diff) | |
download | lufa-5c274d106b8b30403ce8742056518ce33f397ed2.tar.gz lufa-5c274d106b8b30403ce8742056518ce33f397ed2.tar.bz2 lufa-5c274d106b8b30403ce8742056518ce33f397ed2.zip |
Fixed USB_USBTask not being called internally in stream transfers between packets when Partial Stream Transfers are used.
Remove old unused function prototype in the LowLevel MassStorage device demo.
Diffstat (limited to 'LUFA/Drivers/USB/Core/UC3/Template')
-rw-r--r-- | LUFA/Drivers/USB/Core/UC3/Template/Template_Endpoint_RW.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LUFA/Drivers/USB/Core/UC3/Template/Template_Endpoint_RW.c b/LUFA/Drivers/USB/Core/UC3/Template/Template_Endpoint_RW.c index 9ce034007..46b006364 100644 --- a/LUFA/Drivers/USB/Core/UC3/Template/Template_Endpoint_RW.c +++ b/LUFA/Drivers/USB/Core/UC3/Template/Template_Endpoint_RW.c @@ -53,16 +53,16 @@ uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer, { TEMPLATE_CLEAR_ENDPOINT(); + #if !defined(INTERRUPT_CONTROL_ENDPOINT) + USB_USBTask(); + #endif + if (BytesProcessed != NULL) { *BytesProcessed += BytesInTransfer; return ENDPOINT_RWSTREAM_IncompleteTransfer; } - #if !defined(INTERRUPT_CONTROL_ENDPOINT) - USB_USBTask(); - #endif - if ((ErrorCode = Endpoint_WaitUntilReady())) return ErrorCode; } |