Ensure BulkVendor received data is cleared before reading from host.
This commit is contained in:
parent
1b93c85b20
commit
22b3970338
2 changed files with 2 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue