mirror of
https://github.com/xoseperez/espurna.git
synced 2026-02-20 01:31:34 +01:00
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:
@@ -81,6 +81,7 @@ public:
|
||||
}
|
||||
|
||||
void commit() const {
|
||||
_instance->setDirty();
|
||||
autosaveSettings();
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,10 @@ public:
|
||||
return _data;
|
||||
}
|
||||
|
||||
void setDirty() {
|
||||
_dirty = true;
|
||||
}
|
||||
|
||||
// fill all of the available storage with the 'value'
|
||||
void fill(uint8_t);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user