mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
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;
|
||||
if (hri_usbdevice_get_CTRLA_ENABLE_bit(USB)) {
|
||||
tud_cdc_n_write(0, (void const*)ptr, len);
|
||||
tud_cdc_n_write_flush(0);
|
||||
return len;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue