From: Joey Castillo Date: Mon, 9 May 2022 14:59:15 +0000 (-0400) Subject: usb serial: clear whole length of buffer X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=32c6974c0f16882258e5b4c041a2a210e4802d0f;p=sensor-watch.git usb serial: clear whole length of buffer --- diff --git a/watch-library/hardware/watch/watch_private.c b/watch-library/hardware/watch/watch_private.c index e651f3e..a197e52 100644 --- a/watch-library/hardware/watch/watch_private.c +++ b/watch-library/hardware/watch/watch_private.c @@ -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); } }