Fix typo in DualVirtualSerial.c due to the changed CDC Device APIs that was preventing the demo from being compiled.

This commit is contained in:
Dean Camera 2010-07-30 04:20:41 +00:00
parent 24e621a8d8
commit 37c601dbf6
2 changed files with 3 additions and 2 deletions

View file

@ -104,7 +104,7 @@ int main(void)
CDC_Device_ReceiveByte(&VirtualSerial1_CDC_Interface);
/* Echo all received data on the second CDC interface */
int16_t ReceivedByte; = CDC_Device_ReceiveByte(&VirtualSerial2_CDC_Interface);
int16_t ReceivedByte = CDC_Device_ReceiveByte(&VirtualSerial2_CDC_Interface);
if (!(ReceivedByte < 0))
CDC_Device_SendByte(&VirtualSerial2_CDC_Interface, (uint8_t)ReceivedByte);