From 2a25b0ab83674f0fb770c7766cced60d7905fb12 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 5 Oct 2022 13:00:22 -0700 Subject: [PATCH] fixup toggle cleanup old-commit-hash: 300577f38f963bb2854a6139ed50544d9bb493b1 --- selfdrive/controls/controlsd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 9cf079a2b3..6ce1156baf 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -145,8 +145,9 @@ class Controls: # cleanup old params if not self.CP.experimentalLongitudinalAvailable: - params.remove("EndToEndLong") params.remove("ExperimentalLongitudinalEnabled") + if not self.CP.openpilotLongitudinalControl: + params.remove("EndToEndLong") self.CC = car.CarControl.new_message() self.CS_prev = car.CarState.new_message()