From e3bc32a823731e25621347f89e3d5a10e840ee52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20M=C3=B6hle?= <91616163+softhack007@users.noreply.github.com> Date: Mon, 9 Feb 2026 11:14:58 +0100 Subject: [PATCH] remove dead (and dangerous) mutex macros in bus_manager.cpp (#5364) these macros are * not used any more * dangerous because they don't time out * dangerous because they use an internal mutex of the ledc driver (not part of the LEDC API) --- wled00/bus_manager.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/wled00/bus_manager.cpp b/wled00/bus_manager.cpp index a73146ec..017f1dd1 100644 --- a/wled00/bus_manager.cpp +++ b/wled00/bus_manager.cpp @@ -9,14 +9,6 @@ #include "src/dependencies/network/Network.h" // for isConnected() (& WiFi) #include "driver/ledc.h" #include "soc/ledc_struct.h" - #if !(defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2) || defined(CONFIG_IDF_TARGET_ESP32S3)) - #define LEDC_MUTEX_LOCK() do {} while (xSemaphoreTake(_ledc_sys_lock, portMAX_DELAY) != pdPASS) - #define LEDC_MUTEX_UNLOCK() xSemaphoreGive(_ledc_sys_lock) - extern xSemaphoreHandle _ledc_sys_lock; - #else - #define LEDC_MUTEX_LOCK() - #define LEDC_MUTEX_UNLOCK() - #endif #endif #ifdef ESP8266 #include "core_esp8266_waveform.h"