Fixed Low Level USBtoSerial demo not storing received characters (thanks to Michael from DirectAid.ca).
This commit is contained in:
1 parent
81b618be23
commit
93b24a25df
2 files changed
+2
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user