only build DMX drivers when WLED_ENABLE_DMX

both ESPDMX and SparkFunDMX have their own global buffers. Conditional compile prevents that these buffers are consuming RAM when not needed.
This commit is contained in:
Frank
2026-01-25 15:08:40 +01:00
parent 6ad6acfe08
commit 900178cd70
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
// - - - - -
/* ----- LIBRARIES ----- */
#if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2)
#if defined(WLED_ENABLE_DMX) && (defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2))
#include <Arduino.h>

View File

@@ -14,7 +14,7 @@ Distributed as-is; no warranty is given.
******************************************************************************/
/* ----- LIBRARIES ----- */
#if defined(ARDUINO_ARCH_ESP32)
#if defined(ARDUINO_ARCH_ESP32) && defined(WLED_ENABLE_DMX)
#include <Arduino.h>
#if !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S2)