aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/ClassDriver/USBtoSerial
diff options
context:
space:
mode:
Diffstat (limited to 'Demos/Device/ClassDriver/USBtoSerial')
-rw-r--r--Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c b/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
index ac63f0f9f..89537066c 100644
--- a/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
+++ b/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
@@ -152,7 +152,7 @@ void EVENT_USB_UnhandledControlPacket(void)
*/
ISR(USART1_RX_vect, ISR_BLOCK)
{
- if (USB_IsConnected)
+ if (USB_DeviceState == DEVICE_STATE_Configured)
Buffer_StoreElement(&Tx_Buffer, UDR1);
}