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

@@ -543,4 +543,10 @@ impl<'a> BoardInteraction<'a> for V4<'a> {
self.esp.delay.delay_ms(10);
anyhow::Ok(())
}
fn set_config(&mut self, config: PlantControllerConfig) -> anyhow::Result<()> {
self.config = config;
self.esp.save_config(&self.config)?;
anyhow::Ok(())
}
}