settings(embedis): missing condition for commit()

previous write() impl relied on comparing values before and after
assume that operations resulting in commit() are always written
This commit is contained in:
Maxim Prokhorov
2025-12-05 04:49:13 +03:00
parent 86f7507461
commit 46719eecb7
2 changed files with 5 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ public:
}
void commit() const {
_instance->setDirty();
autosaveSettings();
}

View File

@@ -30,6 +30,10 @@ public:
return _data;
}
void setDirty() {
_dirty = true;
}
// fill all of the available storage with the 'value'
void fill(uint8_t);