STM32 BufferedUart: wake receive task for each received byte

Fixes https://github.com/embassy-rs/embassy/issues/2719
This commit is contained in:
Ralf 2024-03-21 08:35:19 +01:00
parent 562152c43c
commit 08e2ba9d74

View File

@ -52,7 +52,7 @@ impl<T: BasicInstance> interrupt::typelevel::Handler<T::Interrupt> for Interrupt
// FIXME: Should we disable any further RX interrupts when the buffer becomes full.
}
if state.rx_buf.is_full() {
if !state.rx_buf.is_empty() {
state.rx_waker.wake();
}
}