aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/usb
diff options
context:
space:
mode:
authorDániel Buga <[email protected]>2024-04-26 22:16:26 +0200
committerDániel Buga <[email protected]>2024-04-26 22:16:45 +0200
commitbc0408dc4bc935d88ce180113d99cd475aed6c44 (patch)
tree3574233543c5fc303b3b6e49a5d61f67de97a4e7 /embassy-stm32/src/usb
parent3dc54c8c445cd193110d5c18a695d18761bf04d9 (diff)
Remove extra disable call
Diffstat (limited to 'embassy-stm32/src/usb')
-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 {