#3809 Loxone JSON parser doesn't handle lx=0 correctly

This commit is contained in:
FreakyJ 2024-08-15 20:18:06 +02:00 committed by GitHub
parent 5cb49c86a0
commit ee1bf1c221
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