diff --git a/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc b/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc index 36a56c9d88..20a8a9aecd 100644 --- a/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc +++ b/selfdrive/ui/sunnypilot/qt/offroad/settings/device_panel.cc @@ -12,6 +12,7 @@ #include "selfdrive/ui/qt/qt_window.h" DevicePanelSP::DevicePanelSP(SettingsWindowSP *parent) : DevicePanel(parent) { +#ifndef SUNNYPILOT QGridLayout *device_grid_layout = new QGridLayout(); device_grid_layout->setSpacing(30); device_grid_layout->setHorizontalSpacing(5); @@ -85,4 +86,5 @@ DevicePanelSP::DevicePanelSP(SettingsWindowSP *parent) : DevicePanel(parent) { } addItem(power_layout); +#endif }