diff --git a/wled00/lx_parser.cpp b/wled00/lx_parser.cpp index 47674823..e3dc384d 100644 --- a/wled00/lx_parser.cpp +++ b/wled00/lx_parser.cpp @@ -1,11 +1,12 @@ #include "wled.h" +#ifdef WLED_ENABLE_LOXONE + /* * Parser for Loxone formats */ bool parseLx(int lxValue, byte rgbw[4]) { - #ifdef WLED_ENABLE_LOXONE DEBUG_PRINT(F("LX: Lox = ")); DEBUG_PRINTLN(lxValue); @@ -42,7 +43,6 @@ bool parseLx(int lxValue, byte rgbw[4]) rgbw[3] = 0; return true; } - #endif return false; } @@ -62,15 +62,10 @@ void parseLxJson(int lxValue, byte segId, bool secondary) } bri = 255; nightlightActive = false; //always disable nightlight when toggling - if (segId == strip.getMainSegmentId()) { - DEBUG_PRINTLN(F("LX: main segment")); - if (secondary) for (byte i = 0; i < 4; i++) colSec[i] = rgbw[i]; - else for (byte i = 0; i < 4; i++) col[i] = rgbw[i]; - } else { - DEBUG_PRINT(F("LX: segment ")); - DEBUG_PRINTLN(segId); - strip.getSegment(segId).setColor(secondary, RGBW32(rgbw[0], rgbw[1], rgbw[2], rgbw[3])); - } + DEBUG_PRINT(F("LX: segment ")); + DEBUG_PRINTLN(segId); + strip.getSegment(segId).setColor(secondary, RGBW32(rgbw[0], rgbw[1], rgbw[2], rgbw[3])); // legacy values handled as well in json.cpp by stateUpdated() } } +#endif diff --git a/wled00/wled.h b/wled00/wled.h index 6cd3f997..9c31cb55 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2212160 +#define VERSION 2212180 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG