Commit 8802907c authored by Dean Camera's avatar Dean Camera
Browse files

Fix CDC device driver not returning written character on putchar success.

parent c9ad0595
...@@ -10,6 +10,8 @@ ...@@ -10,6 +10,8 @@
* <b>Fixed:</b> * <b>Fixed:</b>
* - Core: * - Core:
* - Fixed DeviceUsesOUTPipe flag not being set correctly in the HID host class driver (thanks to Wolfgang Schnerring) * - Fixed DeviceUsesOUTPipe flag not being set correctly in the HID host class driver (thanks to Wolfgang Schnerring)
* - Fixed CDC Device class driver's internal serial stream created by \ref CDC_Device_CreateStream not returning the written
* character after a successful write (thanks to NicoHood)
* - Library Applications: * - Library Applications:
* - Fixed bootloaders not disabling global interrupts during erase and write operations (thanks to Zoltan) * - Fixed bootloaders not disabling global interrupts during erase and write operations (thanks to Zoltan)
* *
......
...@@ -323,7 +323,7 @@ void CDC_Device_CreateBlockingStream(USB_ClassInfo_CDC_Device_t* const CDCInterf ...@@ -323,7 +323,7 @@ void CDC_Device_CreateBlockingStream(USB_ClassInfo_CDC_Device_t* const CDCInterf
static int CDC_Device_putchar(char c, static int CDC_Device_putchar(char c,
FILE* Stream) FILE* Stream)
{ {
return CDC_Device_SendByte((USB_ClassInfo_CDC_Device_t*)fdev_get_udata(Stream), c) ? _FDEV_ERR : 0; return CDC_Device_SendByte((USB_ClassInfo_CDC_Device_t*)fdev_get_udata(Stream), c) ? _FDEV_ERR : c;
} }
static int CDC_Device_getchar(FILE* Stream) static int CDC_Device_getchar(FILE* Stream)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment