mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 00:36:36 +00:00
#3809 Loxone JSON parser doesn't handle lx=0 correctly
This commit is contained in:
parent
5cb49c86a0
commit
ee1bf1c221
@ -197,11 +197,11 @@ bool deserializeSegment(JsonObject elem, byte it, byte presetId)
|
|||||||
// lx parser
|
// lx parser
|
||||||
#ifdef WLED_ENABLE_LOXONE
|
#ifdef WLED_ENABLE_LOXONE
|
||||||
int lx = elem[F("lx")] | -1;
|
int lx = elem[F("lx")] | -1;
|
||||||
if (lx > 0) {
|
if (lx >= 0) {
|
||||||
parseLxJson(lx, id, false);
|
parseLxJson(lx, id, false);
|
||||||
}
|
}
|
||||||
int ly = elem[F("ly")] | -1;
|
int ly = elem[F("ly")] | -1;
|
||||||
if (ly > 0) {
|
if (ly >= 0) {
|
||||||
parseLxJson(ly, id, true);
|
parseLxJson(ly, id, true);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user