Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix:HardwareSerial check framing or parity error
Currently HardwareSerial uart does not check if a framing error (parity error or invalid stop bit) has occured and simply forward the received byte to the caller. This results in spurious invalid data being received e.g. when the uart pin is left floating or when a connected device is reset. This confuses apps using uart, and cause apps to abort with errors. this fix checks received bytes for framing error (parity error or stop bit errors) and discards them if a framing error occured
- Loading branch information