From c7889cf256577f53fe95012aebdfe78701d5d40b Mon Sep 17 00:00:00 2001 From: Jonathan BAUDIN Date: Sun, 3 Dec 2023 11:34:55 +0100 Subject: [PATCH] Update examples --- rp2040-hal/examples/rtc_irq_example.rs | 2 +- rp2040-hal/examples/rtc_sleep_example.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rp2040-hal/examples/rtc_irq_example.rs b/rp2040-hal/examples/rtc_irq_example.rs index 8680e2075..1a6f17fda 100644 --- a/rp2040-hal/examples/rtc_irq_example.rs +++ b/rp2040-hal/examples/rtc_irq_example.rs @@ -106,7 +106,7 @@ fn main() -> ! { // day and time (it may not have been a Monday but it doesn't matter for this example). let mut rtc = hal::rtc::RealTimeClock::new( pac.RTC, - clocks.rtc_clock, + &clocks.rtc_clock, &mut pac.RESETS, rtc::DateTime { year: 0, diff --git a/rp2040-hal/examples/rtc_sleep_example.rs b/rp2040-hal/examples/rtc_sleep_example.rs index 18b8f07c1..10a7c9f74 100644 --- a/rp2040-hal/examples/rtc_sleep_example.rs +++ b/rp2040-hal/examples/rtc_sleep_example.rs @@ -104,7 +104,7 @@ fn main() -> ! { // day and time (it may not have been a Monday but it doesn't matter for this example.). let mut rtc = hal::rtc::RealTimeClock::new( pac.RTC, - clocks.rtc_clock, + &clocks.rtc_clock, &mut pac.RESETS, rtc::DateTime { year: 0,