We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f96389a commit 2001114Copy full SHA for 2001114
1 file changed
nrf-hal-common/src/twim.rs
@@ -425,13 +425,10 @@ where
425
compiler_fence(SeqCst);
426
unsafe { self.set_rx_buffer(buffer)? };
427
428
- // Set appropriate lastrx shortcut.
429
- if next_operation_write.is_none() {
430
- self.0.shorts.write(|w| w.lastrx_stop().enabled());
431
- } else {
432
- #[cfg(not(any(feature = "5340-app", feature = "5340-net", feature = "52832")))]
433
- self.0.shorts.write(|w| w.lastrx_suspend().enabled());
434
- }
+ // TODO: We should suspend rather than stopping if there are more operations to
+ // follow, but for some reason that results in an overrun error and reading bad
+ // data in the next read.
+ self.0.shorts.write(|w| w.lastrx_stop().enabled());
435
436
// Start read.
437
self.0.tasks_startrx.write(|w| unsafe { w.bits(1) });
0 commit comments