Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreySmirnov81 authored and burrbull committed Feb 14, 2022
1 parent 47285df commit 0a8b2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ where
if sr.rxne().bit_is_set() {
// Read the received byte
// NOTE(read_volatile) see `write_volatile` below
usart.dr.read().dr().bits()
Ok(usart.dr.read().dr().bits())
} else {
Err(nb::Error::WouldBlock)
}
Expand Down

0 comments on commit 0a8b2e2

Please sign in to comment.