mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-09-10 17:15:43 +00:00
Fixed Low Level USBtoSerial demo not storing received characters (thanks to Michael from DirectAid.ca).
This commit is contained in:
@@ -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