From 78e382c9aa421b8319dcf1c9ea44ae046c1a019d Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Sun, 31 Oct 2021 23:00:33 -0700 Subject: [PATCH] stop->sequence_stop --- embassy-nrf/src/pwm.rs | 4 ++-- examples/nrf/src/bin/pwm_simple_sin.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index 83d0bdae..8d4a9d8b 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs @@ -276,7 +276,7 @@ impl<'d, T: Instance> Pwm<'d, T> { /// Stop playback #[inline(always)] - pub fn stop(&self) { + pub fn sequence_stop(&self) { let r = T::regs(); r.shorts.write(|w| unsafe { w.bits(0x0) }); @@ -363,7 +363,7 @@ impl<'d, T: Instance> Pwm<'d, T> { impl<'a, T: Instance> Drop for Pwm<'a, T> { fn drop(&mut self) { - self.stop(); + self.sequence_stop(); self.disable(); info!("pwm drop: done"); diff --git a/examples/nrf/src/bin/pwm_simple_sin.rs b/examples/nrf/src/bin/pwm_simple_sin.rs index 3fbfc960..c7d85381 100644 --- a/examples/nrf/src/bin/pwm_simple_sin.rs +++ b/examples/nrf/src/bin/pwm_simple_sin.rs @@ -38,7 +38,7 @@ async fn main(_spawner: Spawner, p: Peripherals) { Timer::after(Duration::from_millis(20000)).await; - pwm.stop(); + pwm.sequence_stop(); info!("pwm stopped!"); loop {