diff options
Diffstat (limited to 'Demos/Device/ClassDriver/CDC')
-rw-r--r-- | Demos/Device/ClassDriver/CDC/CDC.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Demos/Device/ClassDriver/CDC/CDC.c b/Demos/Device/ClassDriver/CDC/CDC.c index 836a6e098..1bcb4640a 100644 --- a/Demos/Device/ClassDriver/CDC/CDC.c +++ b/Demos/Device/ClassDriver/CDC/CDC.c @@ -92,6 +92,7 @@ int main(void) {
CheckJoystickMovement();
+ /* Must throw away unused bytes from the host, or it will lock up while waiting for the device */
while (CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface))
CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
|