While working on a project dealing with parsing ascii strings, I noticed some odd behavior when using the Serial object. When using Serial.read to read in strings, repeated characters led to unexpected, but repeatable, results. For example, sending the string 555 resulted in 55ë.
Sending ascii 555 to a chip running this:
character = Serial.read();
Serial.print( character );
resulted in output that looks like this:
Has anyone else experienced this? Can anyone repeat the bug? Am I missing something?
- Cooper Bakerwww.cooperbaker.com