mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Reset inited flag to allow re-enabling
This commit is contained in:
parent
50aefb4174
commit
7ce2594eb7
@ -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 New Issue
Block a user