Skip to content

Commit

Permalink
Hotfix: fix UI crash when going onroad after onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Jun 11, 2021
1 parent c1112e4 commit 0ef3ce1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion selfdrive/ui/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 0ef3ce1

Please sign in to comment.