Skip to content

Commit 198acee

Browse files
authored
Merge pull request #4104 from FreakyJ/Fix-Bug-#3809
Fixes #3809 Loxone JSON parser doesn't handle lx=0 correctly
2 parents 5cb49c8 + ee1bf1c commit 198acee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wled00/json.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,11 @@ bool deserializeSegment(JsonObject elem, byte it, byte presetId)
197197
// lx parser
198198
#ifdef WLED_ENABLE_LOXONE
199199
int lx = elem[F("lx")] | -1;
200-
if (lx > 0) {
200+
if (lx >= 0) {
201201
parseLxJson(lx, id, false);
202202
}
203203
int ly = elem[F("ly")] | -1;
204-
if (ly > 0) {
204+
if (ly >= 0) {
205205
parseLxJson(ly, id, true);
206206
}
207207
#endif

0 commit comments

Comments
 (0)