Remove extra disable call
This commit is contained in:
parent
3dc54c8c44
commit
bc0408dc4b
1 changed files with 3 additions and 2 deletions
|
@ -280,7 +280,6 @@ impl<'d, T: Instance> embassy_usb_driver::Bus for Bus<'d, T> {
|
|||
}
|
||||
|
||||
async fn disable(&mut self) {
|
||||
Bus::disable(self);
|
||||
// NOTE: inner call is a no-op
|
||||
self.inner.disable().await
|
||||
}
|
||||
|
@ -291,7 +290,9 @@ impl<'d, T: Instance> embassy_usb_driver::Bus for Bus<'d, T> {
|
|||
}
|
||||
|
||||
impl<'d, T: Instance> Drop for Bus<'d, T> {
|
||||
fn drop(&mut self) {}
|
||||
fn drop(&mut self) {
|
||||
Bus::disable(self);
|
||||
}
|
||||
}
|
||||
|
||||
trait SealedInstance {
|
||||
|
|
Loading…
Add table
Reference in a new issue