From ca0020e6139119c780bc7e89c9eb7ccdd6bd25c3 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Wed, 13 Nov 2024 13:12:24 -0500 Subject: [PATCH] should be the whole class --- sunnypilot/selfdrive/car/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunnypilot/selfdrive/car/interfaces.py b/sunnypilot/selfdrive/car/interfaces.py index ae59a24047..8a21a74e47 100644 --- a/sunnypilot/selfdrive/car/interfaces.py +++ b/sunnypilot/selfdrive/car/interfaces.py @@ -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] = []