From ee8f76537b2dd8e886f44bd7e43d4ba9fd767778 Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Sat, 30 Oct 2021 11:33:28 -0700 Subject: [PATCH] at least stop on drop --- embassy-nrf/src/pwm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index d834b130..42294312 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs @@ -328,6 +328,7 @@ impl<'a, T: Instance> Drop for Pwm<'a, T> { fn drop(&mut self) { let r = T::regs(); + self.stop(); r.enable.write(|w| w.enable().disabled()); info!("pwm drop: done");