Fixes #3809 Loxone JSON parser doesn't handle lx=0 correctly
This commit is contained in:
Frank 2024-08-16 02:04:00 +02:00 committed by GitHub
commit 198aceee07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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