Skip to content

Commit

Permalink
Add offset for 4th dynamic option (Honda)
Browse files Browse the repository at this point in the history
  • Loading branch information
arne182 authored Feb 16, 2019
1 parent 70caf89 commit 5ff583b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions selfdrive/car/honda/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ def update(self, cp, cp_cam):
self.hud_lead = cp.vl["ACC_HUD"]['HUD_LEAD']
if self.cruise_setting == 3:
if cp.vl["SCM_BUTTONS"]["CRUISE_SETTING"] == 0:
if self.trMode == 3:
self.trMode = 1
self.trMode = (self.trMode + 1 ) % 3
self.cstm_btns.btns[4].btn_label2 = self.trLabels[self.trMode]
self.prev_cruise_setting = self.cruise_setting
Expand Down

0 comments on commit 5ff583b

Please sign in to comment.