mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +00:00
Fix irq pend behavior
This commit is contained in:
parent
c3b899c470
commit
9a447f1359
@ -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 full = state.rx.is_full();
|
||||
let empty = state.rx.is_empty();
|
||||
state.rx.pop(amt);
|
||||
full
|
||||
!empty
|
||||
});
|
||||
if signal {
|
||||
self.inner.pend();
|
||||
|
Loading…
Reference in New Issue
Block a user