fix config on submit not updated, fix startup initial always in ap mode
This commit is contained in:
@@ -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(())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user