actually fix formatting

This commit is contained in:
Peter Gibson 2023-06-15 18:35:58 +10:00
parent d23717904b
commit d236f3dbf9

View file

@ -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.
}