Reset inited flag to allow re-enabling
This commit is contained in:
parent
50aefb4174
commit
7ce2594eb7
1 changed files with 1 additions and 0 deletions
|
@ -245,6 +245,7 @@ impl<'d, T: Instance> Bus<'d, T> {
|
|||
T::Interrupt::disable();
|
||||
|
||||
<T as SealedRccPeripheral>::disable();
|
||||
self.inited = false;
|
||||
|
||||
#[cfg(stm32l4)]
|
||||
crate::pac::PWR.cr2().modify(|w| w.set_usv(false));
|
||||
|
|
Loading…
Reference in a new issue