diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-03-06 18:51:25 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-06 18:51:25 +0000 |
| commit | aaea056ed16b2fb064a8a4c0985d77336363226e (patch) | |
| tree | d4a547815bc2f2613edb34d2378119b85a9eca33 /examples/stm32f4 | |
| parent | 4603b0236a76d6371f08c22d51276237c7ce79bf (diff) | |
| parent | f3efa4ee3ba562fd51cd49b70a6c5305a1aaac6a (diff) | |
Merge pull request #2664 from eZioPan/build-target-fix
ci stm32: build target fix
Diffstat (limited to 'examples/stm32f4')
| -rw-r--r-- | examples/stm32f4/src/bin/rtc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/rtc.rs b/examples/stm32f4/src/bin/rtc.rs index abab07b6b..82d8a37ba 100644 --- a/examples/stm32f4/src/bin/rtc.rs +++ b/examples/stm32f4/src/bin/rtc.rs | |||
| @@ -28,7 +28,7 @@ async fn main(_spawner: Spawner) { | |||
| 28 | loop { | 28 | loop { |
| 29 | let now: NaiveDateTime = rtc.now().unwrap().into(); | 29 | let now: NaiveDateTime = rtc.now().unwrap().into(); |
| 30 | 30 | ||
| 31 | info!("{}", now.timestamp()); | 31 | info!("{}", now.and_utc().timestamp()); |
| 32 | 32 | ||
| 33 | Timer::after_millis(1000).await; | 33 | Timer::after_millis(1000).await; |
| 34 | } | 34 | } |
