diff --git a/src/main.cpp b/src/main.cpp index de52e98..cf45ef2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -376,18 +376,14 @@ void displayValues() { float lux; - if (vu_active) { + if (light_active) { lux = sensor_readings.lux; - } else if (!isnan(sensors_a4cf1211c3e4.lux)) { lux = sensors_a4cf1211c3e4.lux; - } else if (!isnan(sensors_246f28d1fa5c.lux)) { lux = sensors_246f28d1fa5c.lux; - } else if (!isnan(sensors_246f28d1a080.lux)) { lux = sensors_246f28d1a080.lux; - } else { lux = NAN;