at least stop on drop
This commit is contained in:
parent
6d8198a46a
commit
ee8f76537b
@ -328,6 +328,7 @@ impl<'a, T: Instance> Drop for Pwm<'a, T> {
|
|||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
let r = T::regs();
|
let r = T::regs();
|
||||||
|
|
||||||
|
self.stop();
|
||||||
r.enable.write(|w| w.enable().disabled());
|
r.enable.write(|w| w.enable().disabled());
|
||||||
|
|
||||||
info!("pwm drop: done");
|
info!("pwm drop: done");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user