diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-23 10:39:10 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-07-23 10:39:10 +0000 |
commit | a6e85d6ed80720e15477433f4abf0ca5f54422ba (patch) | |
tree | c401685216fda9ddda1525e37cd374da3655b24e /Demos/Device/ClassDriver/CDC | |
parent | 5dbfdaa17dc4cb35783ec121453c7dfaca9874f3 (diff) | |
download | lufa-a6e85d6ed80720e15477433f4abf0ca5f54422ba.tar.gz lufa-a6e85d6ed80720e15477433f4abf0ca5f54422ba.tar.bz2 lufa-a6e85d6ed80720e15477433f4abf0ca5f54422ba.zip |
Added new Benito project, a simple modified USB-to-Serial bridge for the programming of AVRs using the official Arduino bootloader.
Diffstat (limited to 'Demos/Device/ClassDriver/CDC')
-rw-r--r-- | Demos/Device/ClassDriver/CDC/CDC.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Demos/Device/ClassDriver/CDC/CDC.c b/Demos/Device/ClassDriver/CDC/CDC.c index cc8abe416..95e1a6919 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);
|