Skip to content

Commit 49f9e2f

Browse files
committed
Fix tinyusb lost written chars
This will fix lost chars when tx buffer is full
1 parent 8a97e31 commit 49f9e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/Adafruit_TinyUSB_Core/Adafruit_USBD_CDC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void Adafruit_USBD_CDC::flush(void)
107107

108108
size_t Adafruit_USBD_CDC::write(uint8_t ch)
109109
{
110-
return tud_cdc_write_char((char) ch);
110+
return write(&ch, 1);
111111
}
112112

113113
size_t Adafruit_USBD_CDC::write(const uint8_t *buffer, size_t size)

0 commit comments

Comments
 (0)