Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AdinAck committed Aug 20, 2023
1 parent 6d3f652 commit 35c10e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/serial_echo_irq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ fn main() -> ! {
// initialize global serial
*SER_PORT.borrow(cs).borrow_mut() =
Some(Serial::usart1(dp.USART1, (tx, rx), 9_600.bps(), &mut rcc));

if let Some(ser) = SER_PORT.borrow(cs).borrow_mut().as_mut() {
ser.listen(hal::serial::Event::Rxne); // trigger the USART1 interrupt when bytes are available (receive buffer not empty)
}
Expand Down

0 comments on commit 35c10e6

Please sign in to comment.