Fixed Low Level USBtoSerial demo not storing received characters (thanks to Michael...
authorDean Camera <dean@fourwalledcubicle.com>
Sun, 13 Sep 2009 08:29:31 +0000 (08:29 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Sun, 13 Sep 2009 08:29:31 +0000 (08:29 +0000)
Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c
LUFA/ManPages/ChangeLog.txt

index d5e871c..92449a6 100644 (file)
@@ -299,7 +299,7 @@ ISR(USART1_RX_vect, ISR_BLOCK)
        uint8_t ReceivedByte = UDR1;\r
 \r
        /* Only store received characters if the USB interface is connected */\r
-       if ((USB_DeviceState != DEVICE_STATE_Configured) && LineEncoding.BaudRateBPS)\r
+       if ((USB_DeviceState == DEVICE_STATE_Configured) && LineEncoding.BaudRateBPS)\r
          Buffer_StoreElement(&Tx_Buffer, ReceivedByte);\r
 }\r
 \r
index 6b16e1e..321a7d6 100644 (file)
@@ -65,6 +65,7 @@
   *  - Fix allowable F_CPU values comment in project makefiles to more accurately reflect the allowable values on the USB AVRs\r
   *  - Fixed DFU and CDC class bootloaders on the series 2 USB AVRs, corrected invalid signatures, added support for the new\r
   *    ATMEGAxxx2 series 2 variant AVRs to the DFU bootloader\r
+  *  - Fixed Low Level USBtoSerial demo not storing received characters (thanks to Michael from DirectAid.ca)\r
   *\r
   *\r
   *  \section Sec_ChangeLog090810 Version 090810\r