diff options
Diffstat (limited to 'tests/stm32/src/bin/stop.rs')
| -rw-r--r-- | tests/stm32/src/bin/stop.rs | 2 |
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 | } |
