diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-09-13 08:29:31 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-09-13 08:29:31 +0000 |
commit | 93b24a25dfd49eba38ac9523f1d7f779dfbbb026 (patch) | |
tree | 0f3bbe40b758eb95c0cf61f5f29856e08332e004 | |
parent | 81b618be2376bc790a39db5ac40f7e86ba822ef2 (diff) | |
download | lufa-93b24a25dfd49eba38ac9523f1d7f779dfbbb026.tar.gz lufa-93b24a25dfd49eba38ac9523f1d7f779dfbbb026.tar.bz2 lufa-93b24a25dfd49eba38ac9523f1d7f779dfbbb026.zip |
Fixed Low Level USBtoSerial demo not storing received characters (thanks to Michael from DirectAid.ca).
-rw-r--r-- | Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c | 2 | ||||
-rw-r--r-- | LUFA/ManPages/ChangeLog.txt | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c b/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c index d5e871c2d..92449a67d 100644 --- a/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c +++ b/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c @@ -299,7 +299,7 @@ ISR(USART1_RX_vect, ISR_BLOCK) uint8_t ReceivedByte = UDR1;
/* Only store received characters if the USB interface is connected */
- if ((USB_DeviceState != DEVICE_STATE_Configured) && LineEncoding.BaudRateBPS)
+ if ((USB_DeviceState == DEVICE_STATE_Configured) && LineEncoding.BaudRateBPS)
Buffer_StoreElement(&Tx_Buffer, ReceivedByte);
}
diff --git a/LUFA/ManPages/ChangeLog.txt b/LUFA/ManPages/ChangeLog.txt index 6b16e1e7f..321a7d6e9 100644 --- a/LUFA/ManPages/ChangeLog.txt +++ b/LUFA/ManPages/ChangeLog.txt @@ -65,6 +65,7 @@ * - Fix allowable F_CPU values comment in project makefiles to more accurately reflect the allowable values on the USB AVRs
* - Fixed DFU and CDC class bootloaders on the series 2 USB AVRs, corrected invalid signatures, added support for the new
* ATMEGAxxx2 series 2 variant AVRs to the DFU bootloader
+ * - Fixed Low Level USBtoSerial demo not storing received characters (thanks to Michael from DirectAid.ca)
*
*
* \section Sec_ChangeLog090810 Version 090810
|