UI: faster offroad transition (#21466)

pull/21467/head
Adeeb Shihadeh 4 years ago committed by GitHub
parent ccf2780456
commit 30683e6291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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