From f7e0da0dd9d5cc391fc703f519a9f8ce04787e03 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 21 May 2024 01:26:47 -0500 Subject: [PATCH] regen: use existing carParams msg (#32493) use existing msg old-commit-hash: ce136317d8e7c9d1c2981dacc77df414859c0e21 --- selfdrive/test/process_replay/migration.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/selfdrive/test/process_replay/migration.py b/selfdrive/test/process_replay/migration.py index 152f281948..be78c92d73 100644 --- a/selfdrive/test/process_replay/migration.py +++ b/selfdrive/test/process_replay/migration.py @@ -183,9 +183,7 @@ def migrate_carParams(lr, old_logtime=False): all_msgs = [] for msg in lr: if msg.which() == 'carParams': - CP = messaging.new_message('carParams') - CP.valid = True - CP.carParams = msg.carParams.as_builder() + CP = msg.as_builder() CP.carParams.carFingerprint = MIGRATION.get(CP.carParams.carFingerprint, CP.carParams.carFingerprint) for car_fw in CP.carParams.carFw: car_fw.brand = CP.carParams.carName