aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/src/usb/otg.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-stm32/src/usb/otg.rs b/embassy-stm32/src/usb/otg.rs
index fa1a80b17..9551af99b 100644
--- a/embassy-stm32/src/usb/otg.rs
+++ b/embassy-stm32/src/usb/otg.rs
@@ -280,7 +280,6 @@ impl<'d, T: Instance> embassy_usb_driver::Bus for Bus<'d, T> {
280 } 280 }
281 281
282 async fn disable(&mut self) { 282 async fn disable(&mut self) {
283 Bus::disable(self);
284 // NOTE: inner call is a no-op 283 // NOTE: inner call is a no-op
285 self.inner.disable().await 284 self.inner.disable().await
286 } 285 }
@@ -291,7 +290,9 @@ impl<'d, T: Instance> embassy_usb_driver::Bus for Bus<'d, T> {
291} 290}
292 291
293impl<'d, T: Instance> Drop for Bus<'d, T> { 292impl<'d, T: Instance> Drop for Bus<'d, T> {
294 fn drop(&mut self) {} 293 fn drop(&mut self) {
294 Bus::disable(self);
295 }
295} 296}
296 297
297trait SealedInstance { 298trait SealedInstance {