usb serial: clear whole length of buffer

This commit is contained in:
Joey Castillo committed 2022-05-09 10:59:15 -04:00
1 parent 03b616da62
commit 32c6974c0f
1 file changed
+1 -2
+1 -2
View 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);
}
}