From 5ff583b5b5ff8ab053b6cf2246467ee77e4d4156 Mon Sep 17 00:00:00 2001 From: arne182 Date: Sat, 16 Feb 2019 18:13:27 +0100 Subject: [PATCH] Add offset for 4th dynamic option (Honda) --- selfdrive/car/honda/carstate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/car/honda/carstate.py b/selfdrive/car/honda/carstate.py index 13e8c103d1c70c..288b347e23f441 100644 --- a/selfdrive/car/honda/carstate.py +++ b/selfdrive/car/honda/carstate.py @@ -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