diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index 3f05ed58..83d0bdae 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs @@ -251,8 +251,10 @@ impl<'d, T: Instance> Pwm<'d, T> { }); if n & 1 == 1 { + // tasks_seqstart doesnt exist in all svds so write its bit instead r.tasks_seqstart[0].write(|w| unsafe { w.bits(0x01) }); } else { + // tasks_seqstart doesnt exist in all svds so write its bit instead r.tasks_seqstart[1].write(|w| unsafe { w.bits(0x01) }); } }