X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/ce3ea6fb2513d3aa14c354e2ed78c7eb4a38ee0e..a789619fbe2cd07347816cc5c168e8f904acca86:/Demos/Device/ClassDriver/CDC/CDC.c?ds=inline diff --git a/Demos/Device/ClassDriver/CDC/CDC.c b/Demos/Device/ClassDriver/CDC/CDC.c index 836a6e098..8e3530ca2 100644 --- a/Demos/Device/ClassDriver/CDC/CDC.c +++ b/Demos/Device/ClassDriver/CDC/CDC.c @@ -91,7 +91,8 @@ int main(void) for (;;) { 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);