Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix one condition where read returns a large negative integer instead of the correct byte value. Fix a second condition where checkFromBuffer returns a negative number and triggers a serial read before the buffer is depleted. For example, if 0xFE is read, 0xFFFFFFFE is returned from the buffer which is out of the byte range.
- Loading branch information