diff options
| author | Dániel Buga <[email protected]> | 2024-04-26 18:18:08 +0200 |
|---|---|---|
| committer | Dániel Buga <[email protected]> | 2024-04-26 18:18:08 +0200 |
| commit | 7ce2594eb78a0160928d6a39b778f552f034ddc3 (patch) | |
| tree | 5158713b19636ee35488a8df96cb6ef64928d6b1 /embassy-stm32 | |
| parent | 50aefb417496f45a6c79abf2ac1737d737feb9ba (diff) | |
Reset inited flag to allow re-enabling
Diffstat (limited to 'embassy-stm32')
| -rw-r--r-- | embassy-stm32/src/usb/otg.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embassy-stm32/src/usb/otg.rs b/embassy-stm32/src/usb/otg.rs index 0525718e1..fa1a80b17 100644 --- a/embassy-stm32/src/usb/otg.rs +++ b/embassy-stm32/src/usb/otg.rs | |||
| @@ -245,6 +245,7 @@ impl<'d, T: Instance> Bus<'d, T> { | |||
| 245 | T::Interrupt::disable(); | 245 | T::Interrupt::disable(); |
| 246 | 246 | ||
| 247 | <T as SealedRccPeripheral>::disable(); | 247 | <T as SealedRccPeripheral>::disable(); |
| 248 | self.inited = false; | ||
| 248 | 249 | ||
| 249 | #[cfg(stm32l4)] | 250 | #[cfg(stm32l4)] |
| 250 | crate::pac::PWR.cr2().modify(|w| w.set_usv(false)); | 251 | crate::pac::PWR.cr2().modify(|w| w.set_usv(false)); |
