Renamed USB_Device_SetHighSpeed() to USB_Device_SetFullSpeed() so that the correct...
[pub/USBasp.git] / Demos / Device / ClassDriver / CDC / CDC.c
index 836a6e0..8e3530c 100644 (file)
@@ -91,7 +91,8 @@ int main(void)
        for (;;)\r
        {\r
                CheckJoystickMovement();\r
-               \r
+                \r
+               /* Must throw away unused bytes from the host, or it will lock up while waiting for the device */\r
                while (CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface))\r
                  CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);\r
 \r