]> git.earman.xyz Git - sensor-watch.git/commitdiff
usb serial: clear whole length of buffer
authorJoey Castillo <joeycastillo@utexas.edu>
Mon, 9 May 2022 14:59:15 +0000 (10:59 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Mon, 9 May 2022 14:59:15 +0000 (10:59 -0400)
watch-library/hardware/watch/watch_private.c

index e651f3ebe02d445e37241e4566dc7ece302fecce..a197e522b0ad1d73af45c6e9ac52ed23a1b9bfc2 100644 (file)
@@ -275,8 +275,7 @@ static void cdc_task(void) {
     if (tud_cdc_n_available(0)) {
         tud_cdc_n_read(0, buf, sizeof(buf));
     } else {
-        memset(buf, 0, 64);
-        // buf[0] = 0;
+        memset(buf, 0, 256);
     }
 }