Closed terrillmoore closed 4 years ago
@dhineshkumarmcci , @Lakshmipriya233 , please see if you can come up with a simple test to duplicate this, so we can know when we've fixed this. Probably it involves a simple app using Catena-Arduino-Platform and sending repeated echo 123456....
commands using cut and paste and TeraTerm.
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.