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.
This commit is contained in:
Dean Camera 2011-07-25 01:11:24 +00:00
parent 110711598a
commit 5c274d106b
5 changed files with 13 additions and 14 deletions

View file

@ -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;
}