Only deque from the USBtoSerial's USB->USART buffer when the USART is idle.
[pub/USBasp.git] / Demos / Device / LowLevel / BulkVendor / BulkVendor.c
index 0a395b3..14d0982 100644 (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())