aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-08-14 20:11:38 +0200
committerGitHub <[email protected]>2025-08-14 20:11:38 +0200
commit58f8bb95560ef2232a99317a17fa7d94770fe27a (patch)
tree47eb0290508ca70569e057389b129b494deeb7f6
parenta8350baa8066ebde47b9115528d556a61f35c685 (diff)
parenta977b0a975deccd08aefa7b8889ae1db6bc17a91 (diff)
Merge pull request #4547 from nerwalt/future-nrf-pac-update-fix
Use from_bits with LoopCnt
-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 => {