File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Original file line number Diff line number Diff line change @@ -425,13 +425,10 @@ where
425
425
compiler_fence ( SeqCst ) ;
426
426
unsafe { self . set_rx_buffer ( buffer) ? } ;
427
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
- }
428
+ // TODO: We should suspend rather than stopping if there are more operations to
429
+ // follow, but for some reason that results in an overrun error and reading bad
430
+ // data in the next read.
431
+ self . 0 . shorts . write ( |w| w. lastrx_stop ( ) . enabled ( ) ) ;
435
432
436
433
// Start read.
437
434
self . 0 . tasks_startrx . write ( |w| unsafe { w. bits ( 1 ) } ) ;
You can’t perform that action at this time.
0 commit comments