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

old-commit-hash: d47b00b45a866bef088f51d1ff31de5885ab04e9
This commit is contained in:
Adeeb Shihadeh
2021-06-11 16:17:53 -07:00
committed by GitHub
parent 23ea456f4f
commit 5aa30638fe
+3 -1
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) {