diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index 48a826e9e..7f08866ee 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs @@ -317,13 +317,9 @@ impl<'d, T: Instance> SequencePwm<'d, T> { compiler_fence(Ordering::SeqCst); - r.events_stopped.reset(); - // tasks_stop() doesn't exist in all svds so write its bit instead r.tasks_stop.write(|w| unsafe { w.bits(0x01) }); - while r.events_stopped.read().bits() == 0 {} - r.enable.write(|w| w.enable().disabled()); } }