should be the whole class

This commit is contained in:
Jason Wen
2024-11-13 13:12:24 -05:00
parent 5326b18130
commit ca0020e613
+1 -1
View File
@@ -8,5 +8,5 @@ from openpilot.sunnypilot.mads.mads import MadsParams
class CarStateBaseSP(ABC):
def __init__(self, CP: structs.CarParams):
self.alt_button = 0
self.mads_enabled_toggle = MadsParams.read_enabled_param()
self.mads_enabled_toggle = MadsParams().read_enabled_param()
self.button_events: list[structs.CarState.ButtonEvent] = []