UI: faster offroad transition (#21466)

old-commit-hash: 30683e6291
commatwo_master
Adeeb Shihadeh 4 years ago committed by GitHub
parent 88eab8b0a8
commit 82731ecb31
  1. 2
      selfdrive/ui/ui.cc

@ -208,7 +208,7 @@ static void update_state(UIState *s) {
scene.light_sensor = std::clamp<float>((1023.0 / max_lines) * (max_lines - camera_state.getIntegLines() * gain), 0.0, 1023.0);
}
scene.started = sm["deviceState"].getDeviceState().getStarted();
scene.started = sm["deviceState"].getDeviceState().getStarted() && scene.ignition;
}
static void update_params(UIState *s) {

Loading…
Cancel
Save