Skip to content

Commit 494131e

Browse files
committed
Fix example.
1 parent 1eb0379 commit 494131e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/otg_fs_serial.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use stm32l4xx_hal::prelude::*;
1313
use stm32l4xx_hal::rcc::{
1414
ClockSecuritySystem, CrystalBypass, MsiFreq, PllConfig, PllDivider, PllSource,
1515
};
16-
use stm32l4xx_hal::stm32::{Peripherals, CRS, PWR, RCC};
16+
use stm32l4xx_hal::stm32::{Peripherals, CRS, RCC};
1717
use usb_device::prelude::*;
1818

1919
/// Enable CRS (Clock Recovery System)
@@ -88,7 +88,7 @@ unsafe fn main() -> ! {
8888
.into_alternate(&mut gpioa.moder, &mut gpioa.otyper, &mut gpioa.afrh)
8989
.set_speed(Speed::VeryHigh),
9090
&mut pwr,
91-
clocks.hclk(),
91+
clocks,
9292
);
9393

9494
let usb_bus = UsbBus::new(usb, &mut EP_MEMORY);

0 commit comments

Comments
 (0)