aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 }