Skip to content

Commit

Permalink
test/profiler: fix setting carParams
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Dec 27, 2021
1 parent 13bf30f commit 699b20e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions selfdrive/test/profiling/profiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pprofile # pylint: disable=import-error
import pyprof2calltree # pylint: disable=import-error

from cereal import car
from common.params import Params
from tools.lib.logreader import LogReader
from selfdrive.test.profiling.lib import SubMaster, PubMaster, SubSocket, ReplayDone
Expand Down Expand Up @@ -35,9 +34,7 @@ def get_inputs(msgs, process, fingerprint):
if msg.which() == 'carParams':
m = msg.as_builder()
m.carParams.carFingerprint = fingerprint

CP = car.CarParams.from_dict(m.carParams.to_dict())
Params().put("CarParams", CP.to_bytes())
Params().put("CarParams", m.carParams.copy().to_bytes())
break

sm = SubMaster(msgs, trigger, sub_socks)
Expand Down

0 comments on commit 699b20e

Please sign in to comment.