From 5957db94f6672e3fb90e6314ca34aed7f31719f2 Mon Sep 17 00:00:00 2001 From: nayan Date: Fri, 21 Nov 2025 17:55:00 -0500 Subject: [PATCH] use gui_app.sunnypilot_ui() --- common/params_keys.h | 1 - selfdrive/ui/ui.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/common/params_keys.h b/common/params_keys.h index fe08062987..38578d7ddc 100644 --- a/common/params_keys.h +++ b/common/params_keys.h @@ -173,7 +173,6 @@ inline static std::unordered_map keys = { {"ShowAdvancedControls", {PERSISTENT | BACKUP, BOOL, "0"}}, {"ShowTurnSignals", {PERSISTENT | BACKUP, BOOL, "0"}}, {"StandstillTimer", {PERSISTENT | BACKUP, BOOL, "0"}}, - {"sunnypilot_ui", {PERSISTENT, BOOL, "1"}}, {"TrueVEgoUI", {PERSISTENT | BACKUP, BOOL, "0"}}, // MADS params diff --git a/selfdrive/ui/ui.py b/selfdrive/ui/ui.py index 11fc4e3b95..5e0ba6d1ae 100755 --- a/selfdrive/ui/ui.py +++ b/selfdrive/ui/ui.py @@ -9,8 +9,7 @@ from openpilot.selfdrive.ui.layouts.main import MainLayout from openpilot.selfdrive.ui.mici.layouts.main import MiciMainLayout from openpilot.selfdrive.ui.ui_state import ui_state -from openpilot.common.params import Params -if Params().get_bool("sunnypilot_ui"): +if gui_app.sunnypilot_ui(): from openpilot.selfdrive.ui.sunnypilot.ui_state import ui_state_sp as ui_state def main():