aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/ClassDriver/CDC/CDC.c
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2009-07-23 10:39:10 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2009-07-23 10:39:10 +0000
commitfd2b849d4878bba72ce618db34e7e63c61f36b4d (patch)
treec401685216fda9ddda1525e37cd374da3655b24e /Demos/Device/ClassDriver/CDC/CDC.c
parent012be96231aa8e57616aeafa68d40973a805b81c (diff)
Added new Benito project, a simple modified USB-to-Serial bridge for the programming of AVRs using the official Arduino bootloader.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@679 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Device/ClassDriver/CDC/CDC.c')
-rw-r--r--Demos/Device/ClassDriver/CDC/CDC.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Demos/Device/ClassDriver/CDC/CDC.c b/Demos/Device/ClassDriver/CDC/CDC.c
index cc8abe41..95e1a691 100644
--- a/Demos/Device/ClassDriver/CDC/CDC.c
+++ b/Demos/Device/ClassDriver/CDC/CDC.c
@@ -75,8 +75,7 @@ int main(void)
{
CheckJoystickMovement();
- uint16_t BytesToDiscard = CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface);
- while (BytesToDiscard--)
+ while (CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface))
CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface);
CDC_Device_USBTask(&VirtualSerial_CDC_Interface);