From 2c7747d623566d635489efa73396861cb2661b44 Mon Sep 17 00:00:00 2001 From: FreakyJ Date: Wed, 14 Aug 2024 14:20:24 +0200 Subject: [PATCH] Fix Bug #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 af8ed89ef6..5f699d3a79 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -188,11 +188,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