Incorrect JSON buffer release fix.

This commit is contained in:
Blaž Kristan 2021-12-10 13:29:42 +01:00
parent e1cd45c57e
commit d6cff870e5

View File

@ -495,9 +495,9 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
}
}
usermods.readFromConfig(um); // force change of usermod parameters
}
releaseJSONBufferLock();
releaseJSONBufferLock();
}
if (subPage != 2 && (subPage != 6 || !doReboot)) serializeConfig(); //do not save if factory reset or LED settings (which are saved after LED re-init)
if (subPage == 4) alexaInit();