usb serial: clear whole length of buffer
This commit is contained in:
1 parent
03b616da62
commit
32c6974c0f
1 file changed
+1
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user