mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-29 21:31:08 +00:00
Merge pull request #4547 from nerwalt/future-nrf-pac-update-fix
Use from_bits with LoopCnt
This commit is contained in:
commit
58f8bb9556
@ -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 => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user