rename deepsleep to deep_sleep_ms for clarity on expected duration

in main deep sleep was larger than required by a factor of 1000, fixed
this an renamed function to make expected duration count size obvious
from the name
This commit is contained in:
2026-05-05 22:02:46 +02:00
parent d9aa96a3cb
commit e15e78cc26
6 changed files with 11 additions and 11 deletions

View File

@@ -596,7 +596,7 @@ async fn safe_main(spawner: Spawner) -> FatResult<()> {
board.board_hal.get_esp().set_restart_to_conf(false);
board
.board_hal
.deep_sleep(1000 * 1000 * 60 * deep_sleep_duration_minutes as u64)
.deep_sleep_ms(1000 * 60 * deep_sleep_duration_minutes as u64)
.await;
}
}
@@ -991,7 +991,7 @@ async fn wait_infinity(
board.board_hal.get_esp().set_restart_to_conf(false);
// ensure clean http answer / visible confirmation
Timer::after_millis(500).await;
board.board_hal.deep_sleep(0).await;
board.board_hal.deep_sleep_ms(0).await; // not sleeping smells like a hidden reset, we should call it that!
}
// Short tick while holding so the pattern updates smoothly.
@@ -1100,7 +1100,7 @@ async fn wait_infinity(
.lock()
.await
.board_hal
.deep_sleep(0)
.deep_sleep_ms(0) // not sleeping smells like a hidden reset, we should call it that!
.await;
}
}