[CFG] End preferences when key not found (#1640)
This commit is contained in:
1 parent
b1667190d5
commit
e640c8342a
3 files changed
+13
-1
No files matched your search
@@ -179,8 +179,8 @@ void MQTTtoSSD1306(char* topicOri, JsonObject& SSD1306data) { // json object dec
|
||||
preferences.begin(Gateway_Short_Name, false);
|
||||
if (preferences.isKey("SSD1306Config")) {
|
||||
success = preferences.remove("SSD1306Config");
|
||||
preferences.end();
|
||||
}
|
||||
preferences.end();
|
||||
if (success) {
|
||||
Log.notice(F("SSD1306 config erased" CR));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user