summaryrefslogtreecommitdiffstats
path: root/watch-library/watch
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-08-28 19:34:31 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-08-28 19:34:31 -0400
commit048b5c1d3fdc9c58acccd5558fd3254fbf19ece8 (patch)
treecaf69bfca343b358906d429db288ae0aed3c5c20 /watch-library/watch
parent52ba3b371022ea5fb0340d156acbb5b02fff5f07 (diff)
downloadSensor-Watch-048b5c1d3fdc9c58acccd5558fd3254fbf19ece8.tar.gz
Sensor-Watch-048b5c1d3fdc9c58acccd5558fd3254fbf19ece8.tar.bz2
Sensor-Watch-048b5c1d3fdc9c58acccd5558fd3254fbf19ece8.zip
force sending data after a _write
Diffstat (limited to 'watch-library/watch')
-rw-r--r--watch-library/watch/watch_private.c1
1 files changed, 1 insertions, 0 deletions
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;
}