From fd7f562c87de25930d3ff16e00d6ed67b795f85b Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Thu, 8 Aug 2024 21:23:58 -0400 Subject: [PATCH] MADS: Hyundai: Skip cruise main button check with `pcmCruise` --- selfdrive/car/hyundai/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/hyundai/interface.py b/selfdrive/car/hyundai/interface.py index c2140d2925..34414df7e3 100644 --- a/selfdrive/car/hyundai/interface.py +++ b/selfdrive/car/hyundai/interface.py @@ -222,7 +222,7 @@ class CarInterface(CarInterfaceBase): if self.enable_mads: if not self.CS.prev_mads_enabled and self.CS.mads_enabled and \ - any(b.type == ButtonType.altButton3 for b in self.CS.button_events): + (any(b.type == ButtonType.altButton3 for b in self.CS.button_events) and not self.CP.pcmCruise): self.CS.madsEnabled = True if any(b.type == ButtonType.altButton1 and b.pressed for b in self.CS.button_events): self.CS.madsEnabled = not self.CS.madsEnabled