From 127c922aedf8d405c89eb02559ae8fdc88bd54a2 Mon Sep 17 00:00:00 2001 From: Kevin Robert Keegan Date: Mon, 11 Nov 2024 11:54:18 -0800 Subject: [PATCH] ui: Fix Night Brightness (#33984) --- selfdrive/ui/ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index b6ce6cb02e..ec3d40961d 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -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