Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
_state will be 0x2 for half-duplex mode, so we need to be careful with operator precedence to test only the low bit. Without this change, Serial.flush() hangs when half-duplex is enabled and no data has yet been sent.
- Loading branch information