aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/ClassDriver/CDC
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-30 14:12:00 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-30 14:12:00 +0000
commitec079c71d89913dd4823fe7ecf22d0d3f42b1e6d (patch)
tree2a48b72d2da614a0c428337d6c7a96db5b4ef734 /Demos/Device/ClassDriver/CDC
parent41babf1cb78a2a8e05f40f5de61c3f52bb794fc4 (diff)
downloadlufa-ec079c71d89913dd4823fe7ecf22d0d3f42b1e6d.tar.gz
lufa-ec079c71d89913dd4823fe7ecf22d0d3f42b1e6d.tar.bz2
lufa-ec079c71d89913dd4823fe7ecf22d0d3f42b1e6d.zip
Minor cleanups to DualCDC ClassDriver device demo for clarity.
Diffstat (limited to 'Demos/Device/ClassDriver/CDC')
-rw-r--r--Demos/Device/ClassDriver/CDC/CDC.c1
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);