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:
parent
24e621a8d8
commit
37c601dbf6
2 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue