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.
2 parents 8a28455 + 717917a commit aea8b09Copy full SHA for aea8b09
nrf-hal-common/src/uarte.rs
@@ -257,9 +257,7 @@ where
257
/// Start a UARTE read transaction by setting the control
258
/// values and triggering a read task.
259
fn start_read(&mut self, rx_buffer: &mut [u8]) -> Result<(), Error> {
260
- // This is overly restrictive. See (similar SPIM issue):
261
- // https://github.com/nrf-rs/nrf52/issues/17
262
- if rx_buffer.len() > u8::max_value() as usize {
+ if rx_buffer.len() > EASY_DMA_SIZE {
263
return Err(Error::RxBufferTooLong);
264
}
265
0 commit comments