aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf
diff options
context:
space:
mode:
authornerwalt <[email protected]>2025-08-14 10:33:14 -0600
committernerwalt <[email protected]>2025-08-14 10:33:14 -0600
commita977b0a975deccd08aefa7b8889ae1db6bc17a91 (patch)
treeccde39259fdd21ebe942c1370872cedffb64bde8 /embassy-nrf
parentac46e28c4b4f025279d8974adfb6120c6740e44e (diff)
Use from_bits in LoopCnt
Diffstat (limited to 'embassy-nrf')
-rw-r--r--embassy-nrf/src/pwm.rs2
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 => {