adjustable voltages for mppt

This commit is contained in:
2025-01-07 01:43:34 +01:00
parent c070e68349
commit d94b5e09d2
5 changed files with 10482 additions and 9161 deletions

View File

@@ -566,6 +566,7 @@ fn safe_main() -> anyhow::Result<()> {
let _webserver = httpd(reboot_now.clone());
wait_infinity(WaitType::MqttConfig, reboot_now.clone());
}
board.set_restart_to_conf(false);
board.deep_sleep(1000 * 1000 * 60 * deep_sleep_duration_minutes as u64);
}
@@ -966,6 +967,7 @@ fn main() {
match result {
Ok(_) => {
println!("Main app finished, restarting");
BOARD_ACCESS.lock().unwrap().set_restart_to_conf(false);
BOARD_ACCESS.lock().unwrap().deep_sleep(1);
}
Err(err) => {