From 37fc027e98b6a0a56e430b14ca4610c22280a068 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 11 Apr 2022 10:50:00 -0700 Subject: [PATCH] controlsd: fix soft disable while overriding (#24178) --- selfdrive/controls/controlsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index d15626d3c3..25b0c41419 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -541,7 +541,7 @@ class Controls: # Check which actuators can be enabled CC.latActive = self.active and not CS.steerFaultTemporary and not CS.steerFaultPermanent and \ CS.vEgo > self.CP.minSteerSpeed and not CS.standstill - CC.longActive = self.active and self.state != State.overriding + CC.longActive = self.active and not self.events.any(ET.OVERRIDE) actuators = CC.actuators actuators.longControlState = self.LoC.long_control_state