Skip to content

Commit 906cf55

Browse files
committed
Delete file when clearing variable database as well
1 parent 74ebd29 commit 906cf55

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Variables/VariableDictionary.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ String VariableDictionary::get(const String &key) {
3838
}
3939

4040
void VariableDictionary::clear() {
41+
SPIFFS.remove(VariableDictionary::FILENAME);
4142
SPIFFS.open(VariableDictionary::FILENAME, "w").close();
4243

4344
db.open(SPIFFS.open(VariableDictionary::FILENAME, "r+"));

0 commit comments

Comments
 (0)