Skip to content

Commit d25a746

Browse files
committed
Add comment
1 parent 655e41b commit d25a746

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
@@ -672,6 +672,8 @@ where
672672
}
673673
Ok(self.rx_buf[0])
674674
} else {
675+
// We can only read 1 byte at a time, otherwise ENDTX might not be raised,
676+
// causing the read to stall forever.
675677
start_read(&uarte, &mut self.rx_buf[..1])?;
676678
Err(nb::Error::WouldBlock)
677679
}

0 commit comments

Comments
 (0)