fixup toggle cleanup

old-commit-hash: 300577f38f963bb2854a6139ed50544d9bb493b1
This commit is contained in:
Adeeb Shihadeh
2022-10-05 13:00:22 -07:00
parent f25d434a01
commit 2a25b0ab83
+2 -1
View File
@@ -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()