This commit is contained in:
Frank
2025-12-23 00:11:40 +01:00
parent d3076c43ec
commit 1c2e6aac6e
2 changed files with 3 additions and 0 deletions

View File

@@ -479,8 +479,10 @@ void WLED::setup()
#ifdef ARDUINO_ARCH_ESP32
busDrawMux = xSemaphoreCreateRecursiveMutex(); // WLEDMM prevent concurrent running of strip.show and strip.service
segmentMux = xSemaphoreCreateRecursiveMutex(); // WLEDMM prevent segment changes while effects are running
jsonBufferLockMutex = xSemaphoreCreateRecursiveMutex(); // WLEDMM prevent concurrent JSON buffer writing
xSemaphoreGiveRecursive(busDrawMux); // init semaphores to initially allow drawing
xSemaphoreGiveRecursive(segmentMux);
xSemaphoreGiveRecursive(jsonBufferLockMutex);
#endif
#ifdef ARDUINO_ARCH_ESP32