diff options
| author | Ulf Lilleengen <[email protected]> | 2024-03-21 07:52:18 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-21 07:52:18 +0000 |
| commit | 29d388042cdbd76d46f66ebe58cc580edb4515f8 (patch) | |
| tree | 7cddeb93c5f55867d45523b6fa253e47f359d752 | |
| parent | 562152c43c7054f606003f462b36e52321cc7851 (diff) | |
| parent | 08e2ba9d74a1ea1a17b67d362db14839d26dfb77 (diff) | |
Merge pull request #2722 from jr-oss/stm32_buffered_uart_wake_receive_task_on_time
STM32 BufferedUart: wake receive task for each received byte
| -rw-r--r-- | embassy-stm32/src/usart/buffered.rs | 2 |
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 | } |
