We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c185f37 commit d6e2473Copy full SHA for d6e2473
wled00/util.cpp
@@ -238,7 +238,9 @@ bool requestJSONBufferLock(uint8_t module)
238
#endif
239
240
if (jsonBufferLock || !haveLock) {
241
+ #ifdef ARDUINO_ARCH_ESP32
242
if (haveLock) esp32SemGive(jsonBufferLockMutex); // we got the mutex, but jsonBufferLock says the opposite -> give up
243
+ #endif
244
USER_PRINT(F("ERROR: Locking JSON buffer failed! (still locked by "));
245
USER_PRINT(jsonBufferLock);
246
USER_PRINTLN(")");
@@ -263,7 +265,9 @@ void releaseJSONBufferLock()
263
265
DEBUG_PRINTLN(")");
264
266
fileDoc = nullptr;
267
jsonBufferLock = 0;
268
269
esp32SemGive(jsonBufferLockMutex); // return the mutex
270
271
}
272
273
0 commit comments