Skip to content

Commit b096bde

Browse files
committed
fix otg_fs method
1 parent 7827992 commit b096bde

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/otg_fs.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ unsafe impl UsbPeripheral for USB {
2929
const HIGH_SPEED: bool = false;
3030
const FIFO_DEPTH_WORDS: usize = 320;
3131

32-
fn try_enable() -> Result<(), Infallible> {
32+
fn enable() {
3333
let rcc = unsafe { &*stm32::RCC::ptr() };
3434

3535
cortex_m::interrupt::free(|_| {
@@ -40,8 +40,6 @@ unsafe impl UsbPeripheral for USB {
4040
rcc.ahb2rstr.modify(|_, w| w.otgfsrst().set_bit());
4141
rcc.ahb2rstr.modify(|_, w| w.otgfsrst().clear_bit());
4242
});
43-
44-
Ok(())
4543
}
4644
}
4745

0 commit comments

Comments
 (0)