diff --git a/wled00/presets.cpp b/wled00/presets.cpp index 996aff3b..7b83e21d 100644 --- a/wled00/presets.cpp +++ b/wled00/presets.cpp @@ -336,7 +336,10 @@ void savePreset(byte index, const char* pname, JsonObject sObj) } presetToSave = 0; - if (index > 250 || !fileDoc) return; // cannot save API calls to temporary preset (255) + if (index > 250 || !fileDoc) { + esp32SemGive(presetFileMux); // Release file mutex + return; // cannot save API calls to temporary preset (255) + } sObj.remove("o"); sObj.remove("v"); sObj.remove("time");