mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Remove extra disable call
This commit is contained in:
parent
3dc54c8c44
commit
bc0408dc4b
@ -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…
Reference in New Issue
Block a user