Revert "Rename WLED_ENABLE_DMX to WLED_ENABLE_DMX_OUTPUT"

This reverts commit e3f256bd44.
This commit is contained in:
Arne
2023-10-22 20:52:31 +02:00
parent f6c9708c8c
commit 3b9b9f59e1
14 changed files with 35 additions and 35 deletions

View File

@@ -921,7 +921,7 @@ build_flags_S =
; -D WLED_DISABLE_HUESYNC ; -D WLED_DISABLE_HUESYNC
; -D WLED_DISABLE_MQTT ; -D WLED_DISABLE_MQTT
; -D WLED_DISABLE_INFRARED ; -D WLED_DISABLE_INFRARED
; -D WLED_ENABLE_DMX_OUTPUT ; -D WLED_ENABLE_DMX
lib_deps_S = lib_deps_S =
https://github.com/kosme/arduinoFFT#develop @ 1.9.2+sha.419d7b0 ;; used for USERMOD_AUDIOREACTIVE - using "known working" hash https://github.com/kosme/arduinoFFT#develop @ 1.9.2+sha.419d7b0 ;; used for USERMOD_AUDIOREACTIVE - using "known working" hash
@@ -1548,7 +1548,7 @@ build_flags = ${esp32_4MB_V4_S_base.build_flags}
-D WLED_DISABLE_ALEXA ; RAM 116 bytes; FLASH 13524 bytes -D WLED_DISABLE_ALEXA ; RAM 116 bytes; FLASH 13524 bytes
-D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes -D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes
-D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes ewowi: disabled to stay below 100% -D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes ewowi: disabled to stay below 100%
; -D WLED_ENABLE_DMX_OUTPUT ; -D WLED_ENABLE_DMX
; -D WLED_DEBUG ; -D WLED_DEBUG
; -D SR_DEBUG ; -D SR_DEBUG
; -D MIC_LOGGER ; -D MIC_LOGGER
@@ -1586,7 +1586,7 @@ build_flags = ${esp32_4MB_V4_S_base.build_flags}
-D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes -D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes
-D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes ewowi: disabled to stay below 100% -D WLED_DISABLE_INFRARED ;RAM 136 bytes; FLASH 24492 bytes ewowi: disabled to stay below 100%
;-D WLED_DISABLE_ADALIGHT ;; To disable serial protocols (see upstream #3128) ;-D WLED_DISABLE_ADALIGHT ;; To disable serial protocols (see upstream #3128)
; -D WLED_ENABLE_DMX_OUTPUT ; -D WLED_ENABLE_DMX
; -D WLED_DEBUG ; -D WLED_DEBUG
; -D SR_DEBUG ; -D SR_DEBUG
; -D MIC_LOGGER ; -D MIC_LOGGER
@@ -1610,7 +1610,7 @@ build_flags = ${esp32_4MB_V4_M_base.build_flags}
-D WLED_DISABLE_ALEXA ;; RAM 116 bytes; FLASH 13524 bytes -D WLED_DISABLE_ALEXA ;; RAM 116 bytes; FLASH 13524 bytes
; -D WLED_DISABLE_MQTT ;; RAM 216 bytes; FLASH 16496 bytes ; -D WLED_DISABLE_MQTT ;; RAM 216 bytes; FLASH 16496 bytes
; -D WLED_DISABLE_INFRARED ;;RAM 136 bytes; FLASH 24492 bytes ; -D WLED_DISABLE_INFRARED ;;RAM 136 bytes; FLASH 24492 bytes
; -D WLED_ENABLE_DMX_OUTPUT ; -D WLED_ENABLE_DMX
; -D WLED_DEBUG ; -D WLED_DEBUG
; -D SR_DEBUG ; -D SR_DEBUG
; -D MIC_LOGGER ; -D MIC_LOGGER
@@ -1627,7 +1627,7 @@ build_unflags =
-D USE_ALT_DISPLAY ;; four line display seems to have problems with I2C - it hangs during usermod setup -D USE_ALT_DISPLAY ;; four line display seems to have problems with I2C - it hangs during usermod setup
-D USERMOD_FOUR_LINE_DISPLAY ;; see above -D USERMOD_FOUR_LINE_DISPLAY ;; see above
-D USERMOD_ROTARY_ENCODER_UI ;; see above -D USERMOD_ROTARY_ENCODER_UI ;; see above
-D WLED_ENABLE_DMX_OUTPUT ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX) -D WLED_ENABLE_DMX ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX)
build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation
${common_mm.build_flags_S} ${common_mm.build_flags_M} ${common_mm.build_flags_S} ${common_mm.build_flags_M}
@@ -1766,7 +1766,7 @@ board_build.flash_mode = qio
upload_speed = 256000 ;; 921600 upload_speed = 256000 ;; 921600
build_unflags = ${common.build_unflags} build_unflags = ${common.build_unflags}
-D USERMOD_DALLASTEMPERATURE ;; disabled because it hangs during usermod setup on -S3 (autodetect broken?) -D USERMOD_DALLASTEMPERATURE ;; disabled because it hangs during usermod setup on -S3 (autodetect broken?)
-D WLED_ENABLE_DMX_OUTPUT ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX) -D WLED_ENABLE_DMX ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX)
-D WLED_ENABLE_DMX_INPUT ;; needs more testing -D WLED_ENABLE_DMX_INPUT ;; needs more testing
build_flags = ${common.build_flags} ${esp32s2.build_flags} build_flags = ${common.build_flags} ${esp32s2.build_flags}
@@ -1820,7 +1820,7 @@ build_unflags = ${common.build_unflags}
-DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_CDC_ON_BOOT=1
-DARDUINO_USB_DFU_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0
-D USERMOD_DALLASTEMPERATURE ;; disabled because it hangs during usermod setup on -S3 (autodetect broken?) -D USERMOD_DALLASTEMPERATURE ;; disabled because it hangs during usermod setup on -S3 (autodetect broken?)
-D WLED_ENABLE_DMX_OUTPUT ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX) -D WLED_ENABLE_DMX ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX)
-D WLED_ENABLE_DMX_INPUT ;; needs more testing -D WLED_ENABLE_DMX_INPUT ;; needs more testing
build_flags = ${common.build_flags} ${esp32s2.build_flags} build_flags = ${common.build_flags} ${esp32s2.build_flags}
;; ${Debug_Flags.build_flags} ;; ${Debug_Flags.build_flags}
@@ -1872,7 +1872,7 @@ build_unflags = ${common.build_unflags}
-D USE_ALT_DISPLAY ;; four line display seems to have problems with I2C - it hangs during usermod setup -D USE_ALT_DISPLAY ;; four line display seems to have problems with I2C - it hangs during usermod setup
-D USERMOD_FOUR_LINE_DISPLAY ;; see above -D USERMOD_FOUR_LINE_DISPLAY ;; see above
-D USERMOD_ROTARY_ENCODER_UI ;; see above -D USERMOD_ROTARY_ENCODER_UI ;; see above
-D WLED_ENABLE_DMX_OUTPUT ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX) -D WLED_ENABLE_DMX ;; disabled because it does not work with ESP-IDF 4.4.x (buggy driver in SparkFunDMX)
-D WLED_ENABLE_DMX_INPUT ;; needs more testing -D WLED_ENABLE_DMX_INPUT ;; needs more testing
;-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to disable net print ;-D WLED_DEBUG_HOST='"192.168.x.x"' ;; to disable net print
-D USERMOD_ANIMARTRIX ;; Tips our memory usage over the limit -D USERMOD_ANIMARTRIX ;; Tips our memory usage over the limit
@@ -2104,7 +2104,7 @@ build_flags = ${esp32_4MB_M_base.build_flags}
; -D WLED_DISABLE_HUESYNC ; -D WLED_DISABLE_HUESYNC
; -D WLED_DISABLE_MQTT ; -D WLED_DISABLE_MQTT
; -D WLED_DISABLE_INFRARED ; -D WLED_DISABLE_INFRARED
; -D WLED_ENABLE_DMX_OUTPUT ; -D WLED_ENABLE_DMX
; RAM: [== ] 24.4% (used 79812 bytes from 327680 bytes) ; RAM: [== ] 24.4% (used 79812 bytes from 327680 bytes)
; Flash: [========= ] 90.4% (used 1422581 bytes from 1572864 bytes) ; Flash: [========= ] 90.4% (used 1422581 bytes from 1572864 bytes)

View File

@@ -359,7 +359,7 @@ writeChunks(
method: "plaintext", method: "plaintext",
filter: "html-minify", filter: "html-minify",
mangle: (str) => ` mangle: (str) => `
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
${str.replace(/function FM\(\)[ ]?\{/gms, "function FM() {%DMXVARS%\n")} ${str.replace(/function FM\(\)[ ]?\{/gms, "function FM() {%DMXVARS%\n")}
#else #else
const char PAGE_dmxmap[] PROGMEM = R"=====()====="; const char PAGE_dmxmap[] PROGMEM = R"=====()=====";

View File

@@ -607,7 +607,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
getStringFromJson(otaPass, pwd, 33); //normally not present due to security getStringFromJson(otaPass, pwd, 33); //normally not present due to security
} }
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
JsonObject dmx = doc["dmx"]; JsonObject dmx = doc["dmx"];
CJSON(DMXChannels, dmx[F("chan")]); CJSON(DMXChannels, dmx[F("chan")]);
CJSON(DMXGap,dmx[F("gap")]); CJSON(DMXGap,dmx[F("gap")]);
@@ -1070,7 +1070,7 @@ void serializeConfig() {
ota[F("pskl")] = strlen(otaPass); ota[F("pskl")] = strlen(otaPass);
ota[F("aota")] = aOtaEnabled; ota[F("aota")] = aOtaEnabled;
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
JsonObject dmx = doc.createNestedObject("dmx"); JsonObject dmx = doc.createNestedObject("dmx");
dmx[F("chan")] = DMXChannels; dmx[F("chan")] = DMXChannels;
dmx[F("gap")] = DMXGap; dmx[F("gap")] = DMXGap;

View File

@@ -449,7 +449,7 @@
#endif #endif
#endif #endif
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
#if (LEDPIN == 2) #if (LEDPIN == 2)
#undef LEDPIN #undef LEDPIN
#define LEDPIN 1 #define LEDPIN 1

View File

@@ -10,7 +10,7 @@
* https://github.com/sparkfun/SparkFunDMX * https://github.com/sparkfun/SparkFunDMX
*/ */
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
// WLEDMM: seems that DMX output triggers watchdog resets when compiling for IDF 4.4.x // WLEDMM: seems that DMX output triggers watchdog resets when compiling for IDF 4.4.x
#ifdef ARDUINO_ARCH_ESP32 #ifdef ARDUINO_ARCH_ESP32

View File

@@ -115,7 +115,7 @@ void handleE131Packet(e131_packet_t* p, IPAddress clientIP, byte protocol){
} }
void handleDMXData(uint16_t uni, uint16_t dmxChannels, uint8_t* e131_data, uint8_t mde, uint8_t previousUniverses) { void handleDMXData(uint16_t uni, uint16_t dmxChannels, uint8_t* e131_data, uint8_t mde, uint8_t previousUniverses) {
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
// does not act on out-of-order packets yet // does not act on out-of-order packets yet
if (e131ProxyUniverse > 0 && uni == e131ProxyUniverse) { if (e131ProxyUniverse > 0 && uni == e131ProxyUniverse) {
for (uint16_t i = 1; i <= dmxChannels; i++) for (uint16_t i = 1; i <= dmxChannels; i++)

View File

@@ -24,7 +24,7 @@ function B(){window.history.back()}function RS(){window.location="/settings"}fun
</script><style>@import url("style.css");</style></head><body><h2>%MSG%</body></html>)====="; </script><style>@import url("style.css");</style></head><body><h2>%MSG%</body></html>)=====";
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
// Autogenerated from wled00/data/dmxmap.htm, do not edit!! // Autogenerated from wled00/data/dmxmap.htm, do not edit!!
const char PAGE_dmxmap[] PROGMEM = R"=====(<!DOCTYPE html><html><head><meta content="width=device-width" name="viewport"> const char PAGE_dmxmap[] PROGMEM = R"=====(<!DOCTYPE html><html><head><meta content="width=device-width" name="viewport">

View File

@@ -185,7 +185,7 @@ String PinManagerClass::getPinSpecialText(int gpio) { // special purpose PIN in
if (gpio == IRPIN) return(F("(default) IR receiver pin")); if (gpio == IRPIN) return(F("(default) IR receiver pin"));
#endif #endif
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
if (gpio == 2) return(F("hardcoded DMX output pin")); if (gpio == 2) return(F("hardcoded DMX output pin"));
#endif #endif

View File

@@ -540,7 +540,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
} }
} }
#ifdef WLED_ENABLE_DMX_OUTPUT // include only if DMX is enabled #ifdef WLED_ENABLE_DMX // include only if DMX is enabled
if (subPage == 7) if (subPage == 7)
{ {
int t = request->arg(F("PU")).toInt(); int t = request->arg(F("PU")).toInt();

View File

@@ -120,7 +120,7 @@ void WLED::loop()
} }
#endif #endif
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
handleDMXOutput(); handleDMXOutput();
#endif #endif
#ifdef WLED_ENABLE_DMX_INPUT #ifdef WLED_ENABLE_DMX_INPUT
@@ -574,7 +574,7 @@ void WLED::setup()
pinManager.manageDebugTXPin(); pinManager.manageDebugTXPin();
#ifdef WLED_ENABLE_DMX_OUTPUT //reserve GPIO2 as hardcoded DMX pin #ifdef WLED_ENABLE_DMX //reserve GPIO2 as hardcoded DMX pin
pinManager.allocatePin(2, true, PinOwner::DMX); pinManager.allocatePin(2, true, PinOwner::DMX);
#endif #endif
@@ -696,7 +696,7 @@ void WLED::setup()
ArduinoOTA.setHostname(cmDNS); ArduinoOTA.setHostname(cmDNS);
} }
#endif #endif
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
initDMXOutput(); initDMXOutput();
#endif #endif
#ifdef WLED_ENABLE_DMX_INPUT #ifdef WLED_ENABLE_DMX_INPUT

View File

@@ -35,7 +35,7 @@
#else #else
#undef WLED_ENABLE_ADALIGHT // disable has priority over enable #undef WLED_ENABLE_ADALIGHT // disable has priority over enable
#endif #endif
//#define WLED_ENABLE_DMX_OUTPUT // uses 3.5kb (use LEDPIN other than 2) //#define WLED_ENABLE_DMX // uses 3.5kb (use LEDPIN other than 2)
//#define WLED_ENABLE_DMX_INPUT // Listen for DMX over Serial //#define WLED_ENABLE_DMX_INPUT // Listen for DMX over Serial
//#define WLED_ENABLE_JSONLIVE // peek LED output via /json/live (WS binary peek is always enabled) //#define WLED_ENABLE_JSONLIVE // peek LED output via /json/live (WS binary peek is always enabled)
#ifndef WLED_DISABLE_LOXONE #ifndef WLED_DISABLE_LOXONE
@@ -136,7 +136,7 @@
#include "src/dependencies/espalexa/EspalexaDevice.h" #include "src/dependencies/espalexa/EspalexaDevice.h"
#endif #endif
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
#ifdef ESP8266 #ifdef ESP8266
#include "src/dependencies/dmx/ESPDMX.h" #include "src/dependencies/dmx/ESPDMX.h"
#else //ESP32 #else //ESP32
@@ -415,7 +415,7 @@ WLED_GLOBAL bool receiveDirect _INIT(true); // receive UDP
WLED_GLOBAL bool arlsDisableGammaCorrection _INIT(true); // activate if gamma correction is handled by the source WLED_GLOBAL bool arlsDisableGammaCorrection _INIT(true); // activate if gamma correction is handled by the source
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_OUTPUT #ifdef WLED_ENABLE_DMX
#ifdef ESP8266 #ifdef ESP8266
WLED_GLOBAL DMXESPSerial dmx; WLED_GLOBAL DMXESPSerial dmx;
#else //ESP32 #else //ESP32
@@ -520,7 +520,7 @@ WLED_GLOBAL unsigned long lastEditTime _INIT(0);
WLED_GLOBAL uint16_t userVar0 _INIT(0), userVar1 _INIT(0); //available for use in usermod WLED_GLOBAL uint16_t userVar0 _INIT(0), userVar1 _INIT(0); //available for use in usermod
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
// dmx CONFIG // dmx CONFIG
WLED_GLOBAL byte DMXChannels _INIT(7); // number of channels per fixture WLED_GLOBAL byte DMXChannels _INIT(7); // number of channels per fixture
WLED_GLOBAL byte DMXFixtureMap[15] _INIT_N(({ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 })); WLED_GLOBAL byte DMXFixtureMap[15] _INIT_N(({ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }));

View File

@@ -310,7 +310,7 @@ void loadSettingsFromEEPROM()
e131Port = EEPROM.read(2187) + ((EEPROM.read(2188) << 8) & 0xFF00); e131Port = EEPROM.read(2187) + ((EEPROM.read(2188) << 8) & 0xFF00);
} }
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
if (lastEEPROMversion > 19) if (lastEEPROMversion > 19)
{ {
e131ProxyUniverse = EEPROM.read(2185) + ((EEPROM.read(2186) << 8) & 0xFF00); e131ProxyUniverse = EEPROM.read(2185) + ((EEPROM.read(2186) << 8) & 0xFF00);
@@ -339,7 +339,7 @@ void loadSettingsFromEEPROM()
//custom macro memory (16 slots/ each 64byte) //custom macro memory (16 slots/ each 64byte)
//1024-2047 reserved //1024-2047 reserved
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
// DMX (2530 - 2549)2535 // DMX (2530 - 2549)2535
DMXChannels = EEPROM.read(2530); DMXChannels = EEPROM.read(2530);
DMXGap = EEPROM.read(2531) + ((EEPROM.read(2532) << 8) & 0xFF00); DMXGap = EEPROM.read(2531) + ((EEPROM.read(2532) << 8) & 0xFF00);

View File

@@ -361,7 +361,7 @@ void initServer()
#endif #endif
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
server.on("/dmxmap", HTTP_GET, [](AsyncWebServerRequest *request){ server.on("/dmxmap", HTTP_GET, [](AsyncWebServerRequest *request){
request->send_P(200, "text/html", PAGE_dmxmap , dmxProcessor); request->send_P(200, "text/html", PAGE_dmxmap , dmxProcessor);
}); });
@@ -531,11 +531,11 @@ void serveMessage(AsyncWebServerRequest* request, uint16_t code, const String& h
} }
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
String dmxProcessor(const String& var) String dmxProcessor(const String& var)
{ {
String mapJS; String mapJS;
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
if (var == "DMXVARS") { if (var == "DMXVARS") {
mapJS += "\nCN=" + String(DMXChannels) + ";\n"; mapJS += "\nCN=" + String(DMXChannels) + ";\n";
mapJS += "CS=" + String(DMXStart) + ";\n"; mapJS += "CS=" + String(DMXStart) + ";\n";
@@ -661,7 +661,7 @@ void serveSettings(AsyncWebServerRequest* request, bool post)
case 4: response = request->beginResponse_P(200, "text/html", PAGE_settings_sync, PAGE_settings_sync_length); break; case 4: response = request->beginResponse_P(200, "text/html", PAGE_settings_sync, PAGE_settings_sync_length); break;
case 5: response = request->beginResponse_P(200, "text/html", PAGE_settings_time, PAGE_settings_time_length); break; case 5: response = request->beginResponse_P(200, "text/html", PAGE_settings_time, PAGE_settings_time_length); break;
case 6: response = request->beginResponse_P(200, "text/html", PAGE_settings_sec, PAGE_settings_sec_length); break; case 6: response = request->beginResponse_P(200, "text/html", PAGE_settings_sec, PAGE_settings_sec_length); break;
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
case 7: response = request->beginResponse_P(200, "text/html", PAGE_settings_dmx, PAGE_settings_dmx_length); break; case 7: response = request->beginResponse_P(200, "text/html", PAGE_settings_dmx, PAGE_settings_dmx_length); break;
#endif #endif
case 8: response = request->beginResponse_P(200, "text/html", PAGE_settings_um, PAGE_settings_um_length); break; case 8: response = request->beginResponse_P(200, "text/html", PAGE_settings_um, PAGE_settings_um_length); break;

View File

@@ -213,7 +213,7 @@ void appendGPIOinfo() {
// add reserved and usermod pins as d.um_p array // add reserved and usermod pins as d.um_p array
oappend(rsvd); oappend(rsvd);
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
oappend(SET_F(",2")); // DMX hardcoded pin oappend(SET_F(",2")); // DMX hardcoded pin
#endif #endif
@@ -307,7 +307,7 @@ void getSettingsJS(AsyncWebServerRequest* request, byte subPage, char* dest) //W
#ifndef WLED_DISABLE_2D // include only if 2D is compiled in #ifndef WLED_DISABLE_2D // include only if 2D is compiled in
oappend(PSTR("gId('2dbtn').style.display='';")); oappend(PSTR("gId('2dbtn').style.display='';"));
#endif #endif
#ifdef WLED_ENABLE_DMX_OUTPUT // include only if DMX is enabled #ifdef WLED_ENABLE_DMX // include only if DMX is enabled
oappend(PSTR("gId('dmxbtn').style.display='';")); oappend(PSTR("gId('dmxbtn').style.display='';"));
#endif #endif
} }
@@ -573,7 +573,7 @@ void getSettingsJS(AsyncWebServerRequest* request, byte subPage, char* dest) //W
sappend('c',SET_F("ES"),e131SkipOutOfSequence); sappend('c',SET_F("ES"),e131SkipOutOfSequence);
sappend('c',SET_F("EM"),e131Multicast); sappend('c',SET_F("EM"),e131Multicast);
sappend('v',SET_F("EU"),e131Universe); sappend('v',SET_F("EU"),e131Universe);
#ifdef WLED_ENABLE_DMX_OUTPUT #ifdef WLED_ENABLE_DMX
oappend(SET_F("hideNoDMX();")); // WLEDMM hide "not compiled in" message oappend(SET_F("hideNoDMX();")); // WLEDMM hide "not compiled in" message
#endif #endif
#ifndef WLED_ENABLE_DMX_INPUT #ifndef WLED_ENABLE_DMX_INPUT
@@ -754,7 +754,7 @@ void getSettingsJS(AsyncWebServerRequest* request, byte subPage, char* dest) //W
oappend(SET_F("\";")); oappend(SET_F("\";"));
} }
#ifdef WLED_ENABLE_DMX_OUTPUT // include only if DMX is enabled #ifdef WLED_ENABLE_DMX // include only if DMX is enabled
if (subPage == 7) if (subPage == 7)
{ {
sappend('v',SET_F("PU"),e131ProxyUniverse); sappend('v',SET_F("PU"),e131ProxyUniverse);