Fix UI crash when going onroad after onboarding (#21236)

old-commit-hash: d47b00b45a
commatwo_master v0.8.5
Adeeb Shihadeh 4 years ago committed by GitHub
parent 23ea456f4f
commit 5aa30638fe
  1. 2
      selfdrive/ui/ui.cc

@ -260,7 +260,9 @@ static void update_status(UIState *s) {
s->wide_camera = Hardware::TICI() ? Params().getBool("EnableWideCamera") : false; s->wide_camera = Hardware::TICI() ? Params().getBool("EnableWideCamera") : false;
// Update intrinsics matrix after possible wide camera toggle change // Update intrinsics matrix after possible wide camera toggle change
if (s->vg) {
ui_resize(s, s->fb_w, s->fb_h); ui_resize(s, s->fb_w, s->fb_h);
}
// Choose vision ipc client // Choose vision ipc client
if (s->wide_camera) { if (s->wide_camera) {

Loading…
Cancel
Save