Merge pull request #4547 from nerwalt/future-nrf-pac-update-fix

Use from_bits with LoopCnt
This commit is contained in:
Dario Nieuwenhuis 2025-08-14 20:11:38 +02:00 committed by GitHub
commit 58f8bb9556
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -480,7 +480,7 @@ impl<'d, 's, T: Instance> Sequencer<'d, 's, T> {
match times {
SequenceMode::Loop(n) => {
r.loop_().write(|w| w.set_cnt(vals::LoopCnt(n)));
r.loop_().write(|w| w.set_cnt(vals::LoopCnt::from_bits(n)));
}
// to play infinitely, repeat the sequence one time, then have loops done self trigger seq0 again
SequenceMode::Infinite => {