use correct DMXSerial object on -S2 and -C3

This commit is contained in:
Frank
2026-01-25 17:12:04 +01:00
parent 8faa88e05b
commit 3150f3b448
2 changed files with 3 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ void handleDMXOutput()
} }
void initDMXOutput() { void initDMXOutput() {
#ifdef ESP8266 #if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2)
dmx.init(512); // initialize with bus length dmx.init(512); // initialize with bus length
#else #else
dmx.initWrite(512); // initialize with bus length dmx.initWrite(512); // initialize with bus length

View File

@@ -166,7 +166,7 @@
#ifdef WLED_ENABLE_DMX #ifdef WLED_ENABLE_DMX
#if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2) #if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2)
#include "src/dependencies/dmx/ESPDMX.h" #include "src/dependencies/dmx/ESPDMX.h"
#else //ESP32 #else //ESP32 or ESP32-S3
#include "src/dependencies/dmx/SparkFunDMX.h" #include "src/dependencies/dmx/SparkFunDMX.h"
#endif #endif
#endif #endif
@@ -468,7 +468,7 @@ WLED_GLOBAL bool arlsDisableGammaCorrection _INIT(true); // activate if
WLED_GLOBAL bool arlsForceMaxBri _INIT(false); // enable to force max brightness if source has very dark colors that would be black WLED_GLOBAL bool arlsForceMaxBri _INIT(false); // enable to force max brightness if source has very dark colors that would be black
#ifdef WLED_ENABLE_DMX #ifdef WLED_ENABLE_DMX
#ifdef ESP8266 #if defined(ESP8266) || defined(CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S2)
WLED_GLOBAL DMXESPSerial dmx; WLED_GLOBAL DMXESPSerial dmx;
#else //ESP32 #else //ESP32
WLED_GLOBAL SparkFunDMX dmx; WLED_GLOBAL SparkFunDMX dmx;