From 0a9e2300167f4cac83683921baf3809ea34c67d1 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 13 Sep 2022 20:35:16 -0700 Subject: [PATCH] controlsd: fix regen init for multi-panda setups old-commit-hash: 3f34a7082afce611391369f881756fabc6a7e1e7 --- 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 3054b020e1..569c12e3d6 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -215,7 +215,7 @@ class Controls: controls_state = log.ControlsState.from_bytes(controls_state) self.v_cruise_kph = controls_state.vCruise - if self.sm['pandaStates'][0].controlsAllowed: + if any(ps.controlsAllowed for ps in self.sm['pandaStates']): self.state = State.enabled def update_events(self, CS):