From cc06b0271cc2476afcb927cd68a66fd7d5f63b31 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Mon, 30 Sep 2024 16:40:13 -0400 Subject: [PATCH] fix typo --- sunnypilot/mads/mads.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sunnypilot/mads/mads.py b/sunnypilot/mads/mads.py index 07b9eb3857..0a0dbdaa37 100644 --- a/sunnypilot/mads/mads.py +++ b/sunnypilot/mads/mads.py @@ -61,7 +61,7 @@ class ModifiedAssistDrivingSystem: self.selfdrive.events.add(EventName.silentPedalPressed) if not CS.brakePressed and not CS.brakeHoldActive and not CS.parkingBrake and not CS.regenBraking: - if self.state_machine.state == State.paused and self.available: + if self.state_machine.state == State.paused and self.active: self.selfdrive.events.add(EventName.silentButtonEnable) for be in CS.buttonEvents: @@ -69,7 +69,7 @@ class ModifiedAssistDrivingSystem: if self.selfdrive.enabled: self.selfdrive.events.add(EventName.manualLongitudinalRequired) if be.type == ButtonType.altButton1 and be.pressed: - if not self.available: + if not self.active: if not self.selfdrive.enabled: self.selfdrive.events.add(EventName.buttonCancel) else: