actually fix formatting
This commit is contained in:
parent
d23717904b
commit
d236f3dbf9
@ -24,8 +24,7 @@ impl<T: BasicInstance> interrupt::typelevel::Handler<T::Interrupt> for Interrupt
|
||||
// Reading DR clears the rxne, error and idle interrupt flags on v1.
|
||||
let dr = if sr.ore() || sr.idle() || sr.rxne() {
|
||||
Some(rdr(r).read_volatile())
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
None
|
||||
};
|
||||
clear_interrupt_flags(r, sr);
|
||||
@ -48,8 +47,7 @@ impl<T: BasicInstance> interrupt::typelevel::Handler<T::Interrupt> for Interrupt
|
||||
if !buf.is_empty() {
|
||||
buf[0] = dr.unwrap();
|
||||
rx_writer.push_done(1);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// FIXME: Should we disable any further RX interrupts when the buffer becomes full.
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user