MADS: Hyundai: Skip cruise main button check with pcmCruise

This commit is contained in:
Jason Wen
2024-08-08 21:23:58 -04:00
parent c70db1030c
commit fd7f562c87
+1 -1
View File
@@ -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