From 0ef3ce173a0addf7d9de7e2ccc80e316789251b7 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 11 Jun 2021 16:17:53 -0700 Subject: [PATCH] Hotfix: fix UI crash when going onroad after onboarding --- selfdrive/ui/ui.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index b43a71d1a..5468a0863 100644 --- a/selfdrive/ui/ui.cc +++ b/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){