We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88d1859 commit 3790343Copy full SHA for 3790343
src/uart.rs
@@ -961,9 +961,7 @@ impl<'a> UartRx<'a, Async> {
961
Poll::Ready(Err(Error::Noise))
962
} else if fifointstat.rxerr().bit_is_set() {
963
Poll::Ready(Err(Error::Overrun))
964
- } else if stat.rxidle().bit_is_clear() {
965
- Poll::Ready(Ok(()))
966
- } else if stat.start().bit_is_set() {
+ } else if stat.rxidle().bit_is_clear() || stat.start().bit_is_set() {
967
Poll::Ready(Ok(()))
968
} else {
969
Poll::Pending
0 commit comments