SoftwareSerial::read()
Posted: 16 Dec 2018 13:24
Dear developers
The Z-Uno implementation of SoftwareSerial::read() has two problems
1.
If the buffer is empty, read() returns 0
whereas the Arduino implementation returns -1.
2.
read() will return data beyond the end pointer of the buffer and wrap around to previously read data.
I think many would appreciate the implemention to be changed to match the standard implentation.
The neccessary changes in the source code are minimal.
Cheers
Sebastian
The Z-Uno implementation of SoftwareSerial::read() has two problems
1.
If the buffer is empty, read() returns 0
whereas the Arduino implementation returns -1.
2.
read() will return data beyond the end pointer of the buffer and wrap around to previously read data.
I think many would appreciate the implemention to be changed to match the standard implentation.
The neccessary changes in the source code are minimal.
Cheers
Sebastian