diff --git a/selfdrive/car/interfaces.py b/selfdrive/car/interfaces.py index b9af5afc83..c71d08bb99 100644 --- a/selfdrive/car/interfaces.py +++ b/selfdrive/car/interfaces.py @@ -472,9 +472,10 @@ class CarInterfaceBase(ABC): def toggle_gac(self, cs_out, CS, gac_button, gac_min, gac_max, gac_default, inc_dec): if not self.CP.openpilotLongitudinalControl: - CS.gac_tr = 2 CS.gac_tr_cluster = gac_default - put_nonblocking("LongitudinalPersonality", "2") + if CS.gac_tr != 2: + CS.gac_tr = 2 + put_nonblocking("LongitudinalPersonality", "2") return cs_out, CS if gac_button: self.gac_button_counter += 1 diff --git a/selfdrive/car/toyota/interface.py b/selfdrive/car/toyota/interface.py index f8ce1598e7..3a24cdd623 100644 --- a/selfdrive/car/toyota/interface.py +++ b/selfdrive/car/toyota/interface.py @@ -324,7 +324,9 @@ class CarInterface(CarInterfaceBase): self.CS.madsEnabled = self.get_acc_mads(ret.cruiseState.enabled, self.CS.accEnabled, self.CS.madsEnabled) if not self.CP.openpilotLongitudinalControl: self.CS.gac_tr_cluster = 3 - put_nonblocking("LongitudinalPersonality", "2") + if CS.gac_tr != 2: + CS.gac_tr = 2 + put_nonblocking("LongitudinalPersonality", "2") else: gap_dist_button = bool(self.CS.gap_dist_button) if gap_dist_button: