controlsd: use already initialized params (#32429)

old-commit-hash: 6f3cd143ef
pull/32199/head
Shane Smiskol 12 months ago committed by GitHub
parent 30292b0783
commit c3630f813a
  1. 2
      selfdrive/controls/controlsd.py

@ -166,7 +166,7 @@ class Controls:
def set_initial_state(self):
if REPLAY:
controls_state = Params().get("ReplayControlsState")
controls_state = self.params.get("ReplayControlsState")
if controls_state is not None:
with log.ControlsState.from_bytes(controls_state) as controls_state:
self.v_cruise_helper.v_cruise_kph = controls_state.vCruise

Loading…
Cancel
Save