This commit is contained in:
2024-05-01 21:00:49 +02:00
parent dd91973f9b
commit e2d00bc939
3 changed files with 7 additions and 15 deletions

View File

@@ -386,7 +386,10 @@ fn safe_main() -> anyhow::Result<()> {
&mut board,
);
if STAY_ALIVE.load(std::sync::atomic::Ordering::Relaxed) {
let stay_alive = STAY_ALIVE.load(std::sync::atomic::Ordering::Relaxed);
println!("Check stay alive, current state is {}", stay_alive);
if stay_alive {
drop(board);
let reboot_now = Arc::new(AtomicBool::new(false));
let _webserver = httpd(reboot_now.clone());