controlsd: use already initialized params (#32429)

pull/32430/head
Shane Smiskol 1 year ago committed by GitHub
parent 0f6bbcaa2e
commit 6f3cd143ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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