Minor cleanups to DualCDC ClassDriver device demo for clarity.
[pub/USBasp.git] / Demos / Device / ClassDriver / CDC / CDC.c
index 836a6e0..1bcb464 100644 (file)
@@ -92,6 +92,7 @@ int main(void)
        {\r
                CheckJoystickMovement();\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