Skip to content

Commit

Permalink
GM fix cruise button check
Browse files Browse the repository at this point in the history
  • Loading branch information
twilsonco committed Sep 9, 2022
1 parent 8cdec83 commit 16054d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/gm/interface.py
Expand Up @@ -202,9 +202,9 @@ def _update(self, c):
if self.CS.cruise_buttons != self.CS.prev_cruise_buttons:
be = car.CarState.ButtonEvent.new_message()
be.type = ButtonType.unknown
if self.CS.cruise_buttons[-1] != 0:
if self.CS.cruise_buttons != CruiseButtons.UNPRESS:
be.pressed = True
but = self.CS.cruise_buttons[-1]
but = self.CS.cruise_buttons
else:
be.pressed = False
but = self.CS.prev_cruise_buttons
Expand Down

0 comments on commit 16054d0

Please sign in to comment.