X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/81b618be2376bc790a39db5ac40f7e86ba822ef2..93b24a25dfd49eba38ac9523f1d7f779dfbbb026:/Demos/Device/LowLevel/USBtoSerial/USBtoSerial.c 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); }