diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-02-16 23:22:50 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-02-16 23:22:50 +0000 |
| commit | 897d42e01214396b448e5aae06a4186a4c282e7a (patch) | |
| tree | 0647c0548da5c09a51ac393bf5f37f11ba920ff7 /examples | |
| parent | 0453f7ddb24b55bb080f24c22b6655f0014b21c2 (diff) | |
| parent | 610804f138708e616ed6a7d8324982b009a832d6 (diff) | |
Merge pull request #3880 from nikvoid/stm32-rtc-subsecond
STM32: RTC subsecond support
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32g0/src/bin/rtc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32g0/src/bin/rtc.rs b/examples/stm32g0/src/bin/rtc.rs index c02c1ecd7..50fb6398e 100644 --- a/examples/stm32g0/src/bin/rtc.rs +++ b/examples/stm32g0/src/bin/rtc.rs | |||
| @@ -15,7 +15,7 @@ async fn main(_spawner: Spawner) { | |||
| 15 | 15 | ||
| 16 | info!("Hello World!"); | 16 | info!("Hello World!"); |
| 17 | 17 | ||
| 18 | let now = DateTime::from(2023, 6, 14, DayOfWeek::Friday, 15, 59, 10); | 18 | let now = DateTime::from(2023, 6, 14, DayOfWeek::Friday, 15, 59, 10, 0); |
| 19 | 19 | ||
| 20 | let mut rtc = Rtc::new(p.RTC, RtcConfig::default()); | 20 | let mut rtc = Rtc::new(p.RTC, RtcConfig::default()); |
| 21 | 21 | ||
