diff options
Diffstat (limited to 'usbh/src/lib.rs')
-rwxr-xr-x | usbh/src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usbh/src/lib.rs b/usbh/src/lib.rs index 4e6b8bf..cbf9e66 100755 --- a/usbh/src/lib.rs +++ b/usbh/src/lib.rs @@ -179,8 +179,6 @@ where .expect("Could not get clock 6"); clocks.usb(&gclk6); - rc.reset_periph(); - let usbp = &rc.usb as *const _ as usize; (rc, move || handler(usbp, &mut eventw)) } @@ -252,7 +250,7 @@ where if let TaskState::Detached(_) = self.task_state { self.task_state } else { - TaskState::Detached(DetachedState::Initialize) + } } Event::Attached => { |