diff options
| author | alexmoon <[email protected]> | 2022-04-12 17:51:50 -0400 |
|---|---|---|
| committer | alexmoon <[email protected]> | 2022-04-13 14:55:02 -0400 |
| commit | 2915e858baac442e71bac4b565746401deed22bd (patch) | |
| tree | c4e91cc7de6be24000b9bb39096571d5f26f39df /embassy-usb/src/lib.rs | |
| parent | 7fde3abd5d7e04f6d79d325d4454d6eafabebc1f (diff) | |
Make Driver::disable async and fix comment
Diffstat (limited to 'embassy-usb/src/lib.rs')
| -rw-r--r-- | embassy-usb/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-usb/src/lib.rs b/embassy-usb/src/lib.rs index 210908c2c..11561430b 100644 --- a/embassy-usb/src/lib.rs +++ b/embassy-usb/src/lib.rs | |||
| @@ -198,7 +198,7 @@ impl<'d, D: Driver<'d>, M: RawMutex> UsbDevice<'d, D, M> { | |||
| 198 | DeviceCommand::Enable => warn!("usb: Enable command received while enabled."), | 198 | DeviceCommand::Enable => warn!("usb: Enable command received while enabled."), |
| 199 | DeviceCommand::Disable => { | 199 | DeviceCommand::Disable => { |
| 200 | trace!("usb: disable"); | 200 | trace!("usb: disable"); |
| 201 | self.bus.disable(); | 201 | self.bus.disable().await; |
| 202 | self.device_state = UsbDeviceState::Disabled; | 202 | self.device_state = UsbDeviceState::Disabled; |
| 203 | if let Some(h) = &self.handler { | 203 | if let Some(h) = &self.handler { |
| 204 | h.disabled(); | 204 | h.disabled(); |
