This commit is contained in:
rafael 2024-07-10 22:56:12 +02:00
parent 68b3fbe348
commit d8821dd7d7

View File

@ -317,7 +317,7 @@ impl<'d, T: Instance> BufferedUartRx<'d, T> {
} }
/// we are ready to read if there is data in the buffer /// we are ready to read if there is data in the buffer
fn read_ready() -> Result<bool, Error>{ fn read_ready() -> Result<bool, Error> {
let state = T::buffered_state(); let state = T::buffered_state();
Ok(!state.rx_buf.is_empty()) Ok(!state.rx_buf.is_empty())
} }