Skip to content

Commit

Permalink
Aircoookie#3809 Loxone JSON parser doesn't handle lx=0 correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
FreakyJ authored Aug 15, 2024
1 parent 5cb49c8 commit ee1bf1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wled00/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ bool deserializeSegment(JsonObject elem, byte it, byte presetId)
// lx parser
#ifdef WLED_ENABLE_LOXONE
int lx = elem[F("lx")] | -1;
if (lx > 0) {
if (lx >= 0) {
parseLxJson(lx, id, false);
}
int ly = elem[F("ly")] | -1;
if (ly > 0) {
if (ly >= 0) {
parseLxJson(ly, id, true);
}
#endif
Expand Down

0 comments on commit ee1bf1c

Please sign in to comment.