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

pull/21243/head
Adeeb Shihadeh 4 years ago committed by GitHub
parent ae77f693a2
commit d47b00b45a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/ui/ui.cc

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

Loading…
Cancel
Save