Skip to content

Commit 2681915

Browse files
lulfhargoniX
authored andcommitted
Add comment
1 parent ee59776 commit 2681915

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nrf-hal-common/src/uarte.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ where
709709
}
710710
Ok(self.rx_buf[0])
711711
} else {
712+
// We can only read 1 byte at a time, otherwise ENDTX might not be raised,
713+
// causing the read to stall forever.
712714
start_read(&uarte, &mut self.rx_buf[..1])?;
713715
Err(nb::Error::WouldBlock)
714716
}

0 commit comments

Comments
 (0)