diff --git a/platformio.ini b/platformio.ini index 9d98ff37..f1c121f6 100644 --- a/platformio.ini +++ b/platformio.ini @@ -921,7 +921,7 @@ build_flags_S = ; -D WLED_DISABLE_HUESYNC ; -D WLED_DISABLE_MQTT ; -D WLED_DISABLE_INFRARED - ; -D WLED_ENABLE_DMX_OUTPUT + ; -D WLED_ENABLE_DMX lib_deps_S = 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_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_ENABLE_DMX_OUTPUT + ; -D WLED_ENABLE_DMX ; -D WLED_DEBUG ; -D SR_DEBUG ; -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_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_ENABLE_DMX_OUTPUT + ; -D WLED_ENABLE_DMX ; -D WLED_DEBUG ; -D SR_DEBUG ; -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_MQTT ;; RAM 216 bytes; FLASH 16496 bytes ; -D WLED_DISABLE_INFRARED ;;RAM 136 bytes; FLASH 24492 bytes - ; -D WLED_ENABLE_DMX_OUTPUT + ; -D WLED_ENABLE_DMX ; -D WLED_DEBUG ; -D SR_DEBUG ; -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 USERMOD_FOUR_LINE_DISPLAY ;; 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 ${common_mm.build_flags_S} ${common_mm.build_flags_M} @@ -1766,7 +1766,7 @@ board_build.flash_mode = qio upload_speed = 256000 ;; 921600 build_unflags = ${common.build_unflags} -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 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_DFU_ON_BOOT=0 -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 build_flags = ${common.build_flags} ${esp32s2.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 USERMOD_FOUR_LINE_DISPLAY ;; 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_DEBUG_HOST='"192.168.x.x"' ;; to disable net print -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_MQTT ; -D WLED_DISABLE_INFRARED - ; -D WLED_ENABLE_DMX_OUTPUT + ; -D WLED_ENABLE_DMX ; RAM: [== ] 24.4% (used 79812 bytes from 327680 bytes) ; Flash: [========= ] 90.4% (used 1422581 bytes from 1572864 bytes) diff --git a/tools/cdata.js b/tools/cdata.js index 54cd39bc..8959a588 100644 --- a/tools/cdata.js +++ b/tools/cdata.js @@ -359,7 +359,7 @@ writeChunks( method: "plaintext", filter: "html-minify", mangle: (str) => ` -#ifdef WLED_ENABLE_DMX_OUTPUT +#ifdef WLED_ENABLE_DMX ${str.replace(/function FM\(\)[ ]?\{/gms, "function FM() {%DMXVARS%\n")} #else const char PAGE_dmxmap[] PROGMEM = R"=====()====="; diff --git a/wled00/cfg.cpp b/wled00/cfg.cpp index 22b24886..bb2c9476 100644 --- a/wled00/cfg.cpp +++ b/wled00/cfg.cpp @@ -607,7 +607,7 @@ bool deserializeConfig(JsonObject doc, bool fromFS) { getStringFromJson(otaPass, pwd, 33); //normally not present due to security } - #ifdef WLED_ENABLE_DMX_OUTPUT + #ifdef WLED_ENABLE_DMX JsonObject dmx = doc["dmx"]; CJSON(DMXChannels, dmx[F("chan")]); CJSON(DMXGap,dmx[F("gap")]); @@ -1070,7 +1070,7 @@ void serializeConfig() { ota[F("pskl")] = strlen(otaPass); ota[F("aota")] = aOtaEnabled; - #ifdef WLED_ENABLE_DMX_OUTPUT + #ifdef WLED_ENABLE_DMX JsonObject dmx = doc.createNestedObject("dmx"); dmx[F("chan")] = DMXChannels; dmx[F("gap")] = DMXGap; diff --git a/wled00/const.h b/wled00/const.h index 43018178..24095e3a 100644 --- a/wled00/const.h +++ b/wled00/const.h @@ -449,7 +449,7 @@ #endif #endif -#ifdef WLED_ENABLE_DMX_OUTPUT +#ifdef WLED_ENABLE_DMX #if (LEDPIN == 2) #undef LEDPIN #define LEDPIN 1 diff --git a/wled00/dmx_output.cpp b/wled00/dmx_output.cpp index cea98890..aa01c8a3 100644 --- a/wled00/dmx_output.cpp +++ b/wled00/dmx_output.cpp @@ -10,7 +10,7 @@ * 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 #ifdef ARDUINO_ARCH_ESP32 diff --git a/wled00/e131.cpp b/wled00/e131.cpp index bfac39cc..18c1e3cf 100644 --- a/wled00/e131.cpp +++ b/wled00/e131.cpp @@ -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) { - #ifdef WLED_ENABLE_DMX_OUTPUT + #ifdef WLED_ENABLE_DMX // does not act on out-of-order packets yet if (e131ProxyUniverse > 0 && uni == e131ProxyUniverse) { for (uint16_t i = 1; i <= dmxChannels; i++) diff --git a/wled00/html_other.h b/wled00/html_other.h index 86da6069..b8276aa8 100644 --- a/wled00/html_other.h +++ b/wled00/html_other.h @@ -24,7 +24,7 @@ function B(){window.history.back()}function RS(){window.location="/settings"}fun