aboutsummaryrefslogtreecommitdiff
path: root/tests/stm32/src/bin
diff options
context:
space:
mode:
authorxoviat <[email protected]>2025-12-18 09:13:05 -0600
committerxoviat <[email protected]>2025-12-18 09:13:05 -0600
commita886e97a33690cf9724dedd272d3073a577f9fa4 (patch)
treeebf83cd3b6df712940d8cb490b48dbf315153261 /tests/stm32/src/bin
parent10630047153a8246573191d53d5ac571a3750117 (diff)
stm32: use datemath to resume time
Diffstat (limited to 'tests/stm32/src/bin')
-rw-r--r--tests/stm32/src/bin/stop.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/stm32/src/bin/stop.rs b/tests/stm32/src/bin/stop.rs
index 83c375bc5..75dacbe7e 100644
--- a/tests/stm32/src/bin/stop.rs
+++ b/tests/stm32/src/bin/stop.rs
@@ -60,10 +60,12 @@ async fn async_main(spawner: Spawner) {
60 60
61 let (rtc, _time_provider) = Rtc::new(p.RTC); 61 let (rtc, _time_provider) = Rtc::new(p.RTC);
62 62
63 info!("set datetime");
63 critical_section::with(|cs| { 64 critical_section::with(|cs| {
64 rtc.borrow_mut(cs).set_datetime(now.into()).expect("datetime not set"); 65 rtc.borrow_mut(cs).set_datetime(now.into()).expect("datetime not set");
65 }); 66 });
66 67
68 info!("spawn");
67 spawner.spawn(task_1().unwrap()); 69 spawner.spawn(task_1().unwrap());
68 spawner.spawn(task_2().unwrap()); 70 spawner.spawn(task_2().unwrap());
69} 71}