From fd8920923346a5131d3ebd212090a48731d856a2 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sun, 19 Mar 2023 14:42:01 +0100 Subject: [PATCH] adding WLED_DISABLE_ADALIGHT (issue #3128 This flag disables reading commands from serial interface (RX = gpio 3) Add -D WLED_DISABLE_ADALIGHT to your custom pio build environment. --- wled00/wled.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wled00/wled.h b/wled00/wled.h index b51a85402..65512ea7e 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -30,7 +30,11 @@ #ifndef WLED_DISABLE_MQTT #define WLED_ENABLE_MQTT // saves 12kb #endif -#define WLED_ENABLE_ADALIGHT // saves 500b only (uses GPIO3 (RX) for serial) +#ifndef WLED_DISABLE_ADALIGHT // can be used to disable reading commands from serial RX pin (see issue #3128). + #define WLED_ENABLE_ADALIGHT // disable saves 5Kb (uses GPIO3 (RX) for serial). Related serial protocols: APALIGHT/TPM2, IMPROV, Continuous Serial Streaming +#else + #undef WLED_ENABLE_ADALIGHT // disable has priority over enable +#endif //#define WLED_ENABLE_DMX // uses 3.5kb (use LEDPIN other than 2) //#define WLED_ENABLE_JSONLIVE // peek LED output via /json/live (WS binary peek is always enabled) #ifndef WLED_DISABLE_LOXONE