Fixed Low Level USBtoSerial demo not storing received characters (thanks to Michael from DirectAid.ca).
This commit is contained in:
parent
81b618be23
commit
93b24a25df
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue