aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorxoviat <[email protected]>2025-11-03 19:31:34 +0000
committerGitHub <[email protected]>2025-11-03 19:31:34 +0000
commita967d77a0f0eedcc65778528cceee07edbba2813 (patch)
treed318e20498e02245a4b4a30b9a15c3c7717a6443 /tests
parent500181ac28039858d032d10932462c1e432c0452 (diff)
parent5043f1483e12ce5dbe7a394d5a87c657ff203625 (diff)
Merge pull request #4830 from xoviat/low-power
low_power: update api to allow reconfig
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/bin/stop.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/stm32/src/bin/stop.rs b/tests/stm32/src/bin/stop.rs
index 833ca05d0..73580f0f2 100644
--- a/tests/stm32/src/bin/stop.rs
+++ b/tests/stm32/src/bin/stop.rs
@@ -14,7 +14,6 @@ use embassy_stm32::low_power::{Executor, StopMode, stop_ready, stop_with_rtc};
14use embassy_stm32::rcc::LsConfig; 14use embassy_stm32::rcc::LsConfig;
15use embassy_stm32::rtc::{Rtc, RtcConfig}; 15use embassy_stm32::rtc::{Rtc, RtcConfig};
16use embassy_time::Timer; 16use embassy_time::Timer;
17use static_cell::StaticCell;
18 17
19#[entry] 18#[entry]
20fn main() -> ! { 19fn main() -> ! {
@@ -70,9 +69,6 @@ async fn async_main(spawner: Spawner) {
70 69
71 rtc.set_datetime(now.into()).expect("datetime not set"); 70 rtc.set_datetime(now.into()).expect("datetime not set");
72 71
73 static RTC: StaticCell<Rtc> = StaticCell::new();
74 let rtc = RTC.init(rtc);
75
76 stop_with_rtc(rtc); 72 stop_with_rtc(rtc);
77 73
78 spawner.spawn(task_1().unwrap()); 74 spawner.spawn(task_1().unwrap());