We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d25a746 commit cf11f38Copy full SHA for cf11f38
nrf-hal-common/src/uarte.rs
@@ -271,7 +271,7 @@ where
271
pub fn split(
272
self,
273
tx_buf: &'static mut [u8],
274
- rx_buf: &'static mut [u8],
+ rx_buf: &'static mut [u8; 1],
275
) -> Result<(UarteTx<T>, UarteRx<T>), Error> {
276
let tx = UarteTx::new(tx_buf)?;
277
let rx = UarteRx::new(rx_buf)?;
@@ -674,7 +674,7 @@ where
674
} else {
675
// We can only read 1 byte at a time, otherwise ENDTX might not be raised,
676
// causing the read to stall forever.
677
- start_read(&uarte, &mut self.rx_buf[..1])?;
+ start_read(&uarte, self.rx_buf)?;
678
Err(nb::Error::WouldBlock)
679
}
680
0 commit comments