Hotfix: fix UI crash when going onroad after onboarding

pull/21450/head v0.8.5
Adeeb Shihadeh 2021-06-11 16:17:53 -07:00
parent c1112e4400
commit 0ef3ce173a
1 changed files with 3 additions and 1 deletions

View File

@ -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){