From f853be5c1c56d99517ceccf7863e8468d633ebec Mon Sep 17 00:00:00 2001 From: discountchubbs Date: Tue, 25 Mar 2025 06:55:50 -0700 Subject: [PATCH] Fix DevTekVE's comments --- selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle_panel.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle_panel.h b/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle_panel.h index 2d2cd7cc91..cf4cf2526a 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle_panel.h +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle_panel.h @@ -16,6 +16,7 @@ class VehiclePanel : public QFrame { public: explicit VehiclePanel(QWidget *parent = nullptr); void showEvent(QShowEvent *event) override; + public slots: void updatePanel(bool _offroad); @@ -23,11 +24,11 @@ private: // UI elements QStackedLayout* main_layout = nullptr; QWidget* vehicleScreen = nullptr; - PlatformSelector *platformSelector = nullptr; + PlatformSelector* platformSelector = nullptr; ButtonParamControlSP* hkgtuningToggle = nullptr; - bool offroad; // State tracking + bool offroad = false; Params params; int hkg_state = 0;