Fix irq pend behavior
This commit is contained in:
parent
c3b899c470
commit
9a447f1359
1 changed files with 2 additions and 2 deletions
|
@ -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 full = state.rx.is_full();
|
let empty = state.rx.is_empty();
|
||||||
state.rx.pop(amt);
|
state.rx.pop(amt);
|
||||||
full
|
!empty
|
||||||
});
|
});
|
||||||
if signal {
|
if signal {
|
||||||
self.inner.pend();
|
self.inner.pend();
|
||||||
|
|
Loading…
Reference in a new issue