]> git.earman.xyz Git - sensor-watch.git/commitdiff
force sending data after a _write
authorJoey Castillo <jose.castillo@gmail.com>
Sat, 28 Aug 2021 23:34:31 +0000 (19:34 -0400)
committerJoey Castillo <jose.castillo@gmail.com>
Sat, 28 Aug 2021 23:34:31 +0000 (19:34 -0400)
watch-library/watch/watch_private.c

index 7645fb298e4fd3040b1ee03af64a585a7bed8257..c9f0b3c0fafc6d218799d533b2a93b2b54834c83 100644 (file)
@@ -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;
     }