From dcddb2a0bdf4ca202f5925ff01a6acd0443c67a4 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Sun, 23 Aug 2026 19:53:46 -0400 Subject: [PATCH] models: revert icon override from this branch scope --- .../selfdrive/ui/sunnypilot/mici/layouts/home.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/openpilot/selfdrive/ui/sunnypilot/mici/layouts/home.py b/openpilot/selfdrive/ui/sunnypilot/mici/layouts/home.py index 623002e8c2..d29e579c52 100644 --- a/openpilot/selfdrive/ui/sunnypilot/mici/layouts/home.py +++ b/openpilot/selfdrive/ui/sunnypilot/mici/layouts/home.py @@ -5,22 +5,11 @@ This file is part of sunnypilot and is licensed under the MIT License. See the LICENSE.md file in the root directory for more details. """ from openpilot.selfdrive.ui.mici.layouts.home import MiciHomeLayout -from openpilot.selfdrive.ui.ui_state import ui_state from openpilot.system.ui.lib.application import FontWeight from openpilot.system.ui.widgets.label import UnifiedLabel -RUNNER_TINYGRAD = 1 - class MiciHomeLayoutSP(MiciHomeLayout): def __init__(self): super().__init__() self._openpilot_label = UnifiedLabel("sunnypilot", font_size=88, font_weight=FontWeight.AUDIOWIDE, max_width=480, wrap_text=False) - - def _render(self, rect): - super()._render(rect) - chestnut = ui_state.sm["deviceState"].chestnutPresent - if chestnut: - gpu_ready = ui_state.usbgpu_compiled or (ui_state.params.get("ModelRunnerTypeCache") == RUNNER_TINYGRAD) - self._egpu_icon.set_visible(gpu_ready) - self._egpu_icon_gray.set_visible(not gpu_ready)