mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 12:50:37 +00:00
embassy-nrf: fix PWM loop count
This commit is contained in:
parent
b528ed06e3
commit
30e6d633d3
@ -479,9 +479,8 @@ impl<'d, 's, T: Instance> Sequencer<'d, 's, T> {
|
|||||||
let seqstart_index = if start_seq == StartSequence::One { 1 } else { 0 };
|
let seqstart_index = if start_seq == StartSequence::One { 1 } else { 0 };
|
||||||
|
|
||||||
match times {
|
match times {
|
||||||
// just the one time, no loop count
|
SequenceMode::Loop(n) => {
|
||||||
SequenceMode::Loop(_) => {
|
r.loop_().write(|w| w.set_cnt(vals::LoopCnt(n)));
|
||||||
r.loop_().write(|w| w.set_cnt(vals::LoopCnt::DISABLED));
|
|
||||||
}
|
}
|
||||||
// to play infinitely, repeat the sequence one time, then have loops done self trigger seq0 again
|
// to play infinitely, repeat the sequence one time, then have loops done self trigger seq0 again
|
||||||
SequenceMode::Infinite => {
|
SequenceMode::Infinite => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user