forked from stm32duino/Arduino_Core_STM32
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
Description
In a long USB command session, whenever you wrap around 256 characters of input, the routine to get the number of bytes available returns a wild number, and Serial.read() similarly returns a bunch of while (somewhat historical) data. I think the problem is that the byte count is wrong, and then Serial.read either returns historical data or the contents of the tx ring buffer.