Skip to content

Commit 3261ecc

Browse files
authored
Fix interpolator example post migration to fugit (#434)
1 parent dbc691f commit 3261ecc

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

boards/rp-pico/examples/pico_interpolator.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
// The macro for our start-up function
1717
use rp_pico::entry;
1818

19-
// Time handling traits
20-
use embedded_time::rate::*;
21-
2219
// GPIO traits
2320
use embedded_hal::digital::v2::OutputPin;
2421

@@ -72,7 +69,7 @@ fn main() -> ! {
7269

7370
// The delay object lets us wait for specified amounts of time (in
7471
// milliseconds)
75-
let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().integer());
72+
let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().to_Hz());
7673

7774
// The single-cycle I/O block controls our GPIO pins
7875
let mut sio = hal::Sio::new(pac.SIO);

0 commit comments

Comments
 (0)