controlsd: fix regen init for multi-panda setups

old-commit-hash: 3f34a7082afce611391369f881756fabc6a7e1e7
This commit is contained in:
Adeeb Shihadeh
2022-09-13 20:35:16 -07:00
parent 94e586ccf7
commit 0a9e230016
+1 -1
View File
@@ -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):