From 64e1426b54c41a5b622c666cd7763bb07f73a2c4 Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Wed, 3 Nov 2021 18:46:42 -0700 Subject: [PATCH] clean up some todo comments around infinite play --- embassy-nrf/src/pwm.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index 9f88633c4..b0acd83c1 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs @@ -146,7 +146,6 @@ impl<'d, T: Instance> SequencePwm<'d, T> { r.enable.write(|w| w.enable().enabled()); match times { - // todo why doesn't this play forever? set_duty does... // just the one time, no loop count SequenceMode::Times(1) => { r.loop_.write(|w| w.cnt().disabled()); @@ -400,7 +399,6 @@ impl<'d, T: Instance> SimplePwm<'d, T> { // todo justify? should i fence elsehwere we task start? or compiler_fence(Ordering::SeqCst); - // todo why does this play forever when times(1) doesn't? // tasks_seqstart() doesn't exist in all svds so write its bit instead r.tasks_seqstart[0].write(|w| unsafe { w.bits(1) }); }