diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-11-23 06:56:24 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-11-23 06:56:24 +0000 |
commit | 423d4018f0be89a703832669c3d65b162fc437f3 (patch) | |
tree | 13029411dbef5fffbe6b0efc1e08f66f95fcd7fa /Projects | |
parent | 0595ac27d5aae235e58aa17816c1fc0e7bbb5e1f (diff) | |
download | lufa-423d4018f0be89a703832669c3d65b162fc437f3.tar.gz lufa-423d4018f0be89a703832669c3d65b162fc437f3.tar.bz2 lufa-423d4018f0be89a703832669c3d65b162fc437f3.zip |
Fixed Benito project discarding incoming data from the USB virtual serial port when the USART is busy.
Minor documentation improvements.
Diffstat (limited to 'Projects')
-rw-r--r-- | Projects/Benito/Benito.c | 5 | ||||
-rw-r--r-- | Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c | 2 | ||||
-rw-r--r-- | Projects/LEDNotifier/LEDNotifier.c | 2 | ||||
-rw-r--r-- | Projects/USBtoSerial/USBtoSerial.c | 2 | ||||
-rw-r--r-- | Projects/XPLAINBridge/XPLAINBridge.c | 2 |
5 files changed, 6 insertions, 7 deletions
diff --git a/Projects/Benito/Benito.c b/Projects/Benito/Benito.c index 0e6eacb48..fbb81840f 100644 --- a/Projects/Benito/Benito.c +++ b/Projects/Benito/Benito.c @@ -92,10 +92,9 @@ int main(void) for (;;) { /* Echo bytes from the host to the target via the hardware USART */ - int16_t ReceivedByte = CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface); - if (!(ReceivedByte < 0) && (UCSR1A & (1 << UDRE1))) + if ((UCSR1A & (1 << UDRE1)) && CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface)) { - UDR1 = ReceivedByte; + UDR1 = CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface); LEDs_TurnOnLEDs(LEDMASK_TX); PulseMSRemaining.TxLEDPulse = TX_RX_LED_PULSE_MS; diff --git a/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c b/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c index c1d1d2385..35be12c0a 100644 --- a/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c +++ b/Projects/Incomplete/StandaloneProgrammer/StandaloneProgrammer.c @@ -31,7 +31,7 @@ /** \file * * Main source file for the Standalone Programmer project. This file contains the main tasks of - * the demo and is responsible for the initial application hardware configuration. + * the project and is responsible for the initial application hardware configuration. */ #define INCLUDE_FROM_STANDALONEPROG_C diff --git a/Projects/LEDNotifier/LEDNotifier.c b/Projects/LEDNotifier/LEDNotifier.c index 4ebfb7a2b..2001c5f78 100644 --- a/Projects/LEDNotifier/LEDNotifier.c +++ b/Projects/LEDNotifier/LEDNotifier.c @@ -31,7 +31,7 @@ /** \file * * Main source file for the LEDNotfier project. This file contains the main tasks of - * the demo and is responsible for the initial application hardware configuration. + * the project and is responsible for the initial application hardware configuration. */ #include "LEDNotifier.h" diff --git a/Projects/USBtoSerial/USBtoSerial.c b/Projects/USBtoSerial/USBtoSerial.c index 7f3474af8..1dfd70896 100644 --- a/Projects/USBtoSerial/USBtoSerial.c +++ b/Projects/USBtoSerial/USBtoSerial.c @@ -31,7 +31,7 @@ /** \file * * Main source file for the USBtoSerial project. This file contains the main tasks of - * the demo and is responsible for the initial application hardware configuration. + * the project and is responsible for the initial application hardware configuration. */ #include "USBtoSerial.h" diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c index 15cb87dc4..7c824ec93 100644 --- a/Projects/XPLAINBridge/XPLAINBridge.c +++ b/Projects/XPLAINBridge/XPLAINBridge.c @@ -31,7 +31,7 @@ /** \file * * Main source file for the XPLAINBridge project. This file contains the main tasks of - * the demo and is responsible for the initial application hardware configuration. + * the project and is responsible for the initial application hardware configuration. */ #include "XPLAINBridge.h" |