aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf <[email protected]>2024-03-21 08:35:19 +0100
committerRalf <[email protected]>2024-03-21 08:35:41 +0100
commit08e2ba9d74a1ea1a17b67d362db14839d26dfb77 (patch)
tree7cddeb93c5f55867d45523b6fa253e47f359d752
parent562152c43c7054f606003f462b36e52321cc7851 (diff)
STM32 BufferedUart: wake receive task for each received byte
Fixes https://github.com/embassy-rs/embassy/issues/2719
-rw-r--r--embassy-stm32/src/usart/buffered.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-stm32/src/usart/buffered.rs b/embassy-stm32/src/usart/buffered.rs
index 683b0f8b2..51862e185 100644
--- a/embassy-stm32/src/usart/buffered.rs
+++ b/embassy-stm32/src/usart/buffered.rs
@@ -52,7 +52,7 @@ impl<T: BasicInstance> interrupt::typelevel::Handler<T::Interrupt> for Interrupt
52 // FIXME: Should we disable any further RX interrupts when the buffer becomes full. 52 // FIXME: Should we disable any further RX interrupts when the buffer becomes full.
53 } 53 }
54 54
55 if state.rx_buf.is_full() { 55 if !state.rx_buf.is_empty() {
56 state.rx_waker.wake(); 56 state.rx_waker.wake();
57 } 57 }
58 } 58 }