pull/32439/head
Shane Smiskol 1 year ago
parent ec089b4e1a
commit ea99a2768f
  1. 5
      selfdrive/controls/controlsd.py

@ -198,11 +198,6 @@ class Controls:
if self.CP.passive:
return
# Block resume if cruise never previously enabled
resume_pressed = any(be.type in (ButtonType.accelCruise, ButtonType.resumeCruise) for be in CS.buttonEvents)
if not self.CP.pcmCruise and not self.v_cruise_helper.v_cruise_initialized and resume_pressed:
self.events.add(EventName.resumeBlocked)
if not self.CP.notCar:
self.events.add_from_msg(self.sm['driverMonitoringState'].events)

Loading…
Cancel
Save