clear_snapshot_gpios

This commit is contained in:
proddy
2025-12-23 19:32:25 +01:00
parent 7bb30d37ce
commit 3d70e8c1e6
3 changed files with 11 additions and 0 deletions

View File

@@ -322,6 +322,8 @@ StateUpdateResult WebSettings::update(JsonObject root, WebSettings & settings) {
return StateUpdateResult::ERROR; // don't save the settings if the GPIOs are invalid
}
// clean up snapshot of the GPIOs
EMSESP::system_.clear_snapshot_gpios();
// save the setting internally, for reference later
EMSESP::system_.store_settings(settings);