fix config on submit not updated, fix startup initial always in ap mode

This commit is contained in:
2025-06-19 20:06:43 +02:00
parent 69077239a5
commit 3a2e59874e
6 changed files with 21 additions and 4 deletions

View File

@@ -219,9 +219,7 @@ fn set_config(
let config: PlantControllerConfig = serde_json::from_slice(&all)?;
let mut board = BOARD_ACCESS.lock().expect("board access");
board.board_hal.get_esp().save_config(&config)?;
//TODO fixme board.config = config;
board.board_hal.set_config(config);
anyhow::Ok(Some("saved".to_owned()))
}