From c8b75204ee5df29549d79768790995335ac807de Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Wed, 19 Jan 2022 23:36:01 +1100 Subject: [PATCH] Use .freq() to avoid moving clock --- rp2040-hal/examples/uart.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rp2040-hal/examples/uart.rs b/rp2040-hal/examples/uart.rs index 73ee783..7e1cf79 100644 --- a/rp2040-hal/examples/uart.rs +++ b/rp2040-hal/examples/uart.rs @@ -91,7 +91,7 @@ fn main() -> ! { let mut uart = hal::uart::UartPeripheral::new(pac.UART0, uart_pins, &mut pac.RESETS) .enable( hal::uart::common_configs::_9600_8_N_1, - clocks.peripheral_clock.into(), + clocks.peripheral_clock.freq(), ) .unwrap();