Skip to content

Commit 0a8b2e2

Browse files
AndreySmirnov81burrbull
authored andcommitted
bug fix
1 parent 47285df commit 0a8b2e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ where
697697
if sr.rxne().bit_is_set() {
698698
// Read the received byte
699699
// NOTE(read_volatile) see `write_volatile` below
700-
usart.dr.read().dr().bits()
700+
Ok(usart.dr.read().dr().bits())
701701
} else {
702702
Err(nb::Error::WouldBlock)
703703
}

0 commit comments

Comments
 (0)