Endpoint_Write_Stream_LE(&PadBytes, (AllocationLength - BytesTransferred), AbortOnMassStoreReset);\r
\r
/* Finalize the stream transfer to send the last packet */\r
- Endpoint_ClearCurrentBank();\r
+ Endpoint_ClearIN();\r
\r
/* Succeed the command and update the bytes transferred counter */\r
CommandBlock.DataTransferLength -= BytesTransferred;\r
Endpoint_Write_Stream_LE(&PadBytes, (AllocationLength - BytesTransferred), AbortOnMassStoreReset);\r
\r
/* Finalize the stream transfer to send the last packet */\r
- Endpoint_ClearCurrentBank();\r
+ Endpoint_ClearIN();\r
\r
/* Succeed the command and update the bytes transferred counter */\r
CommandBlock.DataTransferLength -= BytesTransferred;\r
return false;\r
\r
/* Send the endpoint data packet to the host */\r
- Endpoint_ClearCurrentBank();\r
+ Endpoint_ClearIN();\r
\r
/* Succeed the command and update the bytes transferred counter */\r
CommandBlock.DataTransferLength -= 8;\r