mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-01 03:43:46 +08:00
controlsd: fix regen init for multi-panda setups
old-commit-hash: 3f34a7082afce611391369f881756fabc6a7e1e7
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user