diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index a2e153e26..3d76272ac 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs @@ -479,9 +479,8 @@ impl<'d, 's, T: Instance> Sequencer<'d, 's, T> { let seqstart_index = if start_seq == StartSequence::One { 1 } else { 0 }; match times { - // just the one time, no loop count - SequenceMode::Loop(_) => { - r.loop_().write(|w| w.set_cnt(vals::LoopCnt::DISABLED)); + SequenceMode::Loop(n) => { + r.loop_().write(|w| w.set_cnt(vals::LoopCnt(n))); } // to play infinitely, repeat the sequence one time, then have loops done self trigger seq0 again SequenceMode::Infinite => {