Skip to content

Commit

Permalink
no param reads in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
haraschax committed Apr 20, 2020
1 parent 58e71de commit 438b03d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion selfdrive/locationd/calibrationd.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def __init__(self, param_put=False):
self.v_ego = 0

# Read calibration
calibration_params = Params().get("CalibrationParams")
if param_put:
calibration_params = None
else:
calibration_params = Params().get("CalibrationParams")
if calibration_params:
try:
calibration_params = json.loads(calibration_params)
Expand Down

0 comments on commit 438b03d

Please sign in to comment.