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)) {
|
if (tud_cdc_n_available(0)) {
|
||||||
tud_cdc_n_read(0, buf, sizeof(buf));
|
tud_cdc_n_read(0, buf, sizeof(buf));
|
||||||
} else {
|
} else {
|
||||||
memset(buf, 0, 64);
|
memset(buf, 0, 256);
|
||||||
// buf[0] = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user