diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-05-09 10:59:15 -0400 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-05-09 10:59:15 -0400 |
commit | 32c6974c0f16882258e5b4c041a2a210e4802d0f (patch) | |
tree | 59b8c78ae759027c74b1764ff8ee5f7544cb612f | |
parent | 03b616da62da4034aab1b4c3cade13d15cdecd77 (diff) | |
download | Sensor-Watch-32c6974c0f16882258e5b4c041a2a210e4802d0f.tar.gz Sensor-Watch-32c6974c0f16882258e5b4c041a2a210e4802d0f.tar.bz2 Sensor-Watch-32c6974c0f16882258e5b4c041a2a210e4802d0f.zip |
usb serial: clear whole length of buffer
-rw-r--r-- | watch-library/hardware/watch/watch_private.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/watch-library/hardware/watch/watch_private.c b/watch-library/hardware/watch/watch_private.c index e651f3eb..a197e522 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); } } |