From d6cff870e5f664a2df493ee60e1f408a279bdbaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Kristan?= Date: Fri, 10 Dec 2021 13:29:42 +0100 Subject: [PATCH] Incorrect JSON buffer release fix. --- wled00/set.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/set.cpp b/wled00/set.cpp index dd2f5c14..eacdf1e2 100644 --- a/wled00/set.cpp +++ b/wled00/set.cpp @@ -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();