From 98b98b76257dca9b5a38cf5dda309c533ff9b5bf Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 16 Aug 2024 02:04:00 +0200 Subject: [PATCH] Merge pull request #4104 from FreakyJ/Fix-Bug-#3809 Fixes #3809 Loxone JSON parser doesn't handle lx=0 correctly --- wled00/json.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/json.cpp b/wled00/json.cpp index ac4d1ca598..89f12319d7 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -267,11 +267,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