Merge pull request #2722 from jr-oss/stm32_buffered_uart_wake_receive_task_on_time

STM32 BufferedUart: wake receive task for each received byte
This commit is contained in:
Ulf Lilleengen 2024-03-21 07:52:18 +00:00 committed by GitHub
commit 29d388042c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();
}
}