Reset inited flag to allow re-enabling

This commit is contained in:
Dániel Buga 2024-04-26 18:18:08 +02:00
parent 50aefb4174
commit 7ce2594eb7

View File

@ -245,6 +245,7 @@ impl<'d, T: Instance> Bus<'d, T> {
T::Interrupt::disable(); T::Interrupt::disable();
<T as SealedRccPeripheral>::disable(); <T as SealedRccPeripheral>::disable();
self.inited = false;
#[cfg(stm32l4)] #[cfg(stm32l4)]
crate::pac::PWR.cr2().modify(|w| w.set_usv(false)); crate::pac::PWR.cr2().modify(|w| w.set_usv(false));