ui.cc: fix Hardware::TICI() check for screen brightness (#22847)

old-commit-hash: 1f106e3725
commatwo_master
eFini 4 years ago committed by GitHub
parent caa01d2f95
commit ad64b505fe
  1. 2
      selfdrive/ui/ui.cc

@ -174,7 +174,7 @@ static void update_state(UIState *s) {
float max_gain = Hardware::EON() ? 1.0: 10.0; float max_gain = Hardware::EON() ? 1.0: 10.0;
float max_ev = max_lines * max_gain; float max_ev = max_lines * max_gain;
if (Hardware::TICI) { if (Hardware::TICI()) {
max_ev /= 6; max_ev /= 6;
} }

Loading…
Cancel
Save