From b6f6f748b387b8b38953b9b5d7079c09317e8a1a Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Thu, 24 Apr 2025 20:13:20 +0100 Subject: [PATCH] hardware: make set_dispaly_power not abstract follow-up to https://github.com/commaai/openpilot/pull/35060#discussion_r2058829397 --- system/hardware/base.py | 1 - system/hardware/pc/hardware.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/system/hardware/base.py b/system/hardware/base.py index f2c627d339..1e3b94e44e 100644 --- a/system/hardware/base.py +++ b/system/hardware/base.py @@ -130,7 +130,6 @@ class HardwareBase(ABC): def get_thermal_config(self): return ThermalConfig() - @abstractmethod def set_display_power(self, on: bool): pass diff --git a/system/hardware/pc/hardware.py b/system/hardware/pc/hardware.py index 091f6a9b25..017a449c90 100644 --- a/system/hardware/pc/hardware.py +++ b/system/hardware/pc/hardware.py @@ -53,9 +53,6 @@ class Pc(HardwareBase): def shutdown(self): print("SHUTDOWN!") - def set_display_power(self, on): - pass - def set_screen_brightness(self, percentage): pass