diff options
Diffstat (limited to 'embassy-nrf')
| -rw-r--r-- | embassy-nrf/src/pwm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index 3d76272ac..d6b40b5c0 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs | |||
| @@ -480,7 +480,7 @@ impl<'d, 's, T: Instance> Sequencer<'d, 's, T> { | |||
| 480 | 480 | ||
| 481 | match times { | 481 | match times { |
| 482 | SequenceMode::Loop(n) => { | 482 | SequenceMode::Loop(n) => { |
| 483 | r.loop_().write(|w| w.set_cnt(vals::LoopCnt(n))); | 483 | r.loop_().write(|w| w.set_cnt(vals::LoopCnt::from_bits(n))); |
| 484 | } | 484 | } |
| 485 | // to play infinitely, repeat the sequence one time, then have loops done self trigger seq0 again | 485 | // to play infinitely, repeat the sequence one time, then have loops done self trigger seq0 again |
| 486 | SequenceMode::Infinite => { | 486 | SequenceMode::Infinite => { |
