From 3261eccd4dad0fd1e4eccf75a63574a958f5803b Mon Sep 17 00:00:00 2001 From: Wilfried Chauveau Date: Fri, 26 Aug 2022 02:32:24 +0100 Subject: [PATCH] Fix interpolator example post migration to fugit (#434) --- boards/rp-pico/examples/pico_interpolator.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/boards/rp-pico/examples/pico_interpolator.rs b/boards/rp-pico/examples/pico_interpolator.rs index dc96f25..1d8545d 100644 --- a/boards/rp-pico/examples/pico_interpolator.rs +++ b/boards/rp-pico/examples/pico_interpolator.rs @@ -16,9 +16,6 @@ // The macro for our start-up function use rp_pico::entry; -// Time handling traits -use embedded_time::rate::*; - // GPIO traits use embedded_hal::digital::v2::OutputPin; @@ -72,7 +69,7 @@ fn main() -> ! { // The delay object lets us wait for specified amounts of time (in // milliseconds) - let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().integer()); + let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().to_Hz()); // The single-cycle I/O block controls our GPIO pins let mut sio = hal::Sio::new(pac.SIO);