force sending data after a _write

This commit is contained in:
Joey Castillo 2021-08-28 19:34:31 -04:00
parent 52ba3b3710
commit 048b5c1d3f

View file

@ -94,6 +94,7 @@ int _write(int file, char *ptr, int len) {
(void)file; (void)file;
if (hri_usbdevice_get_CTRLA_ENABLE_bit(USB)) { if (hri_usbdevice_get_CTRLA_ENABLE_bit(USB)) {
tud_cdc_n_write(0, (void const*)ptr, len); tud_cdc_n_write(0, (void const*)ptr, len);
tud_cdc_n_write_flush(0);
return len; return len;
} }