stm32/rtc: fix exampel

This commit is contained in:
xoviat 2023-08-06 12:12:18 -05:00
parent ae608cf2fa
commit b555af1c5d

View file

@ -35,7 +35,7 @@ async fn main(_spawner: Spawner) {
let mut rtc = Rtc::new( let mut rtc = Rtc::new(
p.RTC, 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()); info!("Got RTC! {:?}", now.timestamp());