ui: Fix Night Brightness (#33984)

This commit is contained in:
Kevin Robert Keegan
2024-11-11 11:54:18 -08:00
committed by GitHub
parent f50ee8a67a
commit 127c922aed
+1 -1
View File
@@ -145,7 +145,7 @@ void Device::resetInteractiveTimeout(int timeout) {
void Device::updateBrightness(const UIState &s) {
float clipped_brightness = offroad_brightness;
if (s.scene.started && s.scene.light_sensor > 0) {
if (s.scene.started && s.scene.light_sensor >= 0) {
clipped_brightness = s.scene.light_sensor;
// CIE 1931 - https://www.photonstophotos.net/GeneralTopics/Exposure/Psychometric_Lightness_and_Gamma.htm