Ensure BulkVendor received data is cleared before reading from host.

This commit is contained in:
Dean Camera 2014-06-07 17:25:10 +10:00
parent 1b93c85b20
commit 22b3970338
2 changed files with 2 additions and 0 deletions

View file

@ -53,6 +53,7 @@ int main(void)
USB_USBTask();
uint8_t ReceivedData[VENDOR_IO_EPSIZE];
memset(ReceivedData, 0x00, sizeof(ReceivedData));
Endpoint_SelectEndpoint(VENDOR_OUT_EPADDR);
if (Endpoint_IsOUTReceived())