prevent writing empty settings

This commit is contained in:
MichaelDvP
2023-01-02 10:08:00 +01:00
parent 5ee49d8dad
commit 718ede8439

View File

@@ -81,7 +81,7 @@ class FSPersistence {
File settingsFile = _fs->open(_filePath, "w");
// failed to open file, return false
if (!settingsFile) {
if (!settingsFile || !jsonObject.size()) {
#if defined(EMSESP_DEBUG)
#if defined(EMSESP_USE_SERIAL)
Serial.println();