force sending data after a _write
This commit is contained in:
parent
52ba3b3710
commit
048b5c1d3f
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user