|
|
|
@ -205,8 +205,9 @@ class CarInterface(CarInterfaceBase): |
|
|
|
|
def _update(self, c): |
|
|
|
|
ret = self.CS.update(self.cp, self.cp_cam, self.cp_loopback) |
|
|
|
|
|
|
|
|
|
ret.buttonEvents = create_button_events(self.CS.cruise_buttons, self.CS.prev_cruise_buttons, BUTTONS_DICT, |
|
|
|
|
unpressed_btn=CruiseButtons.UNPRESS, init_btn=CruiseButtons.INIT) |
|
|
|
|
if self.CS.cruise_buttons != CruiseButtons.UNPRESS or self.CS.prev_cruise_buttons != CruiseButtons.INIT: |
|
|
|
|
ret.buttonEvents = create_button_events(self.CS.cruise_buttons, self.CS.prev_cruise_buttons, BUTTONS_DICT, |
|
|
|
|
unpressed_btn=CruiseButtons.UNPRESS) |
|
|
|
|
|
|
|
|
|
# The ECM allows enabling on falling edge of set, but only rising edge of resume |
|
|
|
|
events = self.create_common_events(ret, extra_gears=[GearShifter.sport, GearShifter.low, |
|
|
|
|