mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-02-16 17:02:30 +00:00
nrf after cargo check
This commit is contained in:
parent
c7f775dc20
commit
f5ebdebd96
@ -769,7 +769,7 @@ impl<'d, U: UarteInstance, T: TimerInstance> BufferedUarteRx<'d, U, 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 = U::buffered_state();
|
||||||
Ok(!state.rx_buf.is_empty())
|
Ok(!state.rx_buf.is_empty())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -835,7 +835,7 @@ mod _embedded_io {
|
|||||||
|
|
||||||
impl<'d, U: UarteInstance, T: TimerInstance + 'd> embedded_io_async::ReadReady for BufferedUarte<'d, U, T> {
|
impl<'d, U: UarteInstance, T: TimerInstance + 'd> embedded_io_async::ReadReady for BufferedUarte<'d, U, T> {
|
||||||
fn read_ready(&mut self) -> Result<bool, Self::Error> {
|
fn read_ready(&mut self) -> Result<bool, Self::Error> {
|
||||||
BufferedUarteRx::<'d, T>::read_ready()
|
BufferedUarteRx::<'d, U, T>::read_ready()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user