diff options
| -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)); |
