From 9772645718ae245c13d3905b2e70db8cb85443f6 Mon Sep 17 00:00:00 2001 From: chemicstry Date: Thu, 26 May 2022 23:36:25 +0300 Subject: [PATCH] Revert "Fix irq pend behavior" This reverts commit 9a447f1359ebaabc486ed4eb364eb3dd7b5275c9. --- embassy-nrf/src/buffered_uarte.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embassy-nrf/src/buffered_uarte.rs b/embassy-nrf/src/buffered_uarte.rs index 4f15bb263..e1d32a311 100644 --- a/embassy-nrf/src/buffered_uarte.rs +++ b/embassy-nrf/src/buffered_uarte.rs @@ -268,9 +268,9 @@ impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::BufRead fn consume(&mut self, amt: usize) { let signal = self.inner.with(|state| { - let empty = state.rx.is_empty(); + let full = state.rx.is_full(); state.rx.pop(amt); - !empty + full }); if signal { self.inner.pend();