From b555af1c5d1016d2a99ee20a1beadb00fddbed84 Mon Sep 17 00:00:00 2001 From: xoviat Date: Sun, 6 Aug 2023 12:12:18 -0500 Subject: [PATCH] stm32/rtc: fix exampel --- examples/stm32l4/src/bin/rtc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/stm32l4/src/bin/rtc.rs b/examples/stm32l4/src/bin/rtc.rs index d72d5ddb6..fe2aabb44 100644 --- a/examples/stm32l4/src/bin/rtc.rs +++ b/examples/stm32l4/src/bin/rtc.rs @@ -35,7 +35,7 @@ async fn main(_spawner: Spawner) { let mut rtc = Rtc::new( p.RTC, - RtcConfig::default().clock_config(embassy_stm32::rtc::RtcClockSource::LSE), + RtcConfig::default().clock_source(embassy_stm32::rtc::RtcClockSource::LSE), ); info!("Got RTC! {:?}", now.timestamp());