Revert "Fix irq pend behavior"

This reverts commit 9a447f1359.
This commit is contained in:
chemicstry 2022-05-26 23:36:25 +03:00
parent 9a447f1359
commit 9772645718

View File

@ -268,9 +268,9 @@ impl<'d, U: UarteInstance, T: TimerInstance> embedded_io::asynch::BufRead
fn consume(&mut self, amt: usize) { fn consume(&mut self, amt: usize) {
let signal = self.inner.with(|state| { let signal = self.inner.with(|state| {
let empty = state.rx.is_empty(); let full = state.rx.is_full();
state.rx.pop(amt); state.rx.pop(amt);
!empty full
}); });
if signal { if signal {
self.inner.pend(); self.inner.pend();