Skip to content

Commit 98b98b7

Browse files
committed
Merge pull request wled#4104 from FreakyJ/Fix-Bug-#3809
Fixes wled#3809 Loxone JSON parser doesn't handle lx=0 correctly
1 parent f4b70f4 commit 98b98b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wled00/json.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@ bool deserializeSegment(JsonObject elem, byte it, byte presetId)
267267
// lx parser
268268
#ifdef WLED_ENABLE_LOXONE
269269
int lx = elem[F("lx")] | -1;
270-
if (lx > 0) {
270+
if (lx >= 0) {
271271
parseLxJson(lx, id, false);
272272
}
273273
int ly = elem[F("ly")] | -1;
274-
if (ly > 0) {
274+
if (ly >= 0) {
275275
parseLxJson(ly, id, true);
276276
}
277277
#endif

0 commit comments

Comments
 (0)