From 048b5c1d3fdc9c58acccd5558fd3254fbf19ece8 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Sat, 28 Aug 2021 19:34:31 -0400 Subject: force sending data after a _write --- watch-library/watch/watch_private.c | 1 + 1 file changed, 1 insertion(+) (limited to 'watch-library/watch') diff --git a/watch-library/watch/watch_private.c b/watch-library/watch/watch_private.c index 7645fb29..c9f0b3c0 100644 --- a/watch-library/watch/watch_private.c +++ b/watch-library/watch/watch_private.c @@ -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; } -- cgit v1.2.3