usb serial: clear whole length of buffer
This commit is contained in:
parent
03b616da62
commit
32c6974c0f
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user