.NotificationEndpointNumber = CDC_NOTIFICATION_EPNUM,\r
.NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,\r
},\r
- \r
- .State =\r
- {\r
- // Leave all state values to their defaults\r
- }\r
};\r
\r
/** Main program entry point. This routine contains the overall program flow, including initial\r
for (;;)\r
{\r
/* Echo bytes from the host to the target via the hardware USART */\r
- if (CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface))\r
+ if (CDC_Device_BytesReceived(&VirtualSerial_CDC_Interface) > 0)\r
{\r
Serial_TxByte(CDC_Device_ReceiveByte(&VirtualSerial_CDC_Interface));\r
\r