mirror of
https://github.com/wled/WLED.git
synced 2025-07-12 05:16:31 +00:00
util: Print locking module when JSON lock fails
For debugging, also log who was trying to lock when it was contended.
This commit is contained in:
parent
6f01896d04
commit
e701b5b5eb
@ -231,7 +231,9 @@ bool requestJSONBufferLock(uint8_t module)
|
|||||||
#endif
|
#endif
|
||||||
// If the lock is still held - by us, or by another task
|
// If the lock is still held - by us, or by another task
|
||||||
if (jsonBufferLock) {
|
if (jsonBufferLock) {
|
||||||
DEBUG_PRINT(F("ERROR: Locking JSON buffer failed! (still locked by "));
|
DEBUG_PRINT(F("ERROR: Locking JSON buffer ("));
|
||||||
|
DEBUG_PRINT(module);
|
||||||
|
DEBUG_PRINT(F(") failed! (still locked by "));
|
||||||
DEBUG_PRINT(jsonBufferLock);
|
DEBUG_PRINT(jsonBufferLock);
|
||||||
DEBUG_PRINTLN(")");
|
DEBUG_PRINTLN(")");
|
||||||
#ifdef ARDUINO_ARCH_ESP32
|
#ifdef ARDUINO_ARCH_ESP32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user