From f383e5cc64d105e90b8133d58dc18490b79153fb Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 3 Sep 2024 19:11:31 -0700 Subject: [PATCH] fix interfaces usage --- opendbc/car/car_helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opendbc/car/car_helpers.py b/opendbc/car/car_helpers.py index 4d8cbabaa4..a5a500bbdd 100644 --- a/opendbc/car/car_helpers.py +++ b/opendbc/car/car_helpers.py @@ -150,7 +150,7 @@ def fingerprint(can_recv: CanRecvCallable, can_send: CanSendCallable, set_obd_mu def get_car_interface(CP: CarParams): - CarInterface, CarController, CarState = interfaces[CP.carFingerprint] + CarInterface, CarController, CarState, _ = interfaces[CP.carFingerprint] return CarInterface(CP, CarController, CarState) @@ -162,7 +162,7 @@ def get_car(can_recv: CanRecvCallable, can_send: CanSendCallable, set_obd_multip carlog.error({"event": "car doesn't match any fingerprints", "fingerprints": repr(fingerprints)}) candidate = "MOCK" - CarInterface, _, _ = interfaces[candidate] + CarInterface, _, _, _ = interfaces[candidate] CP: CarParams = CarInterface.get_params(candidate, fingerprints, car_fw, experimental_long_allowed, docs=False) CP.carVin = vin CP.carFw = car_fw @@ -174,6 +174,6 @@ def get_car(can_recv: CanRecvCallable, can_send: CanSendCallable, set_obd_multip def get_demo_car_params(): platform = MOCK.MOCK - CarInterface, _, _ = interfaces[platform] + CarInterface, _, _, _ = interfaces[platform] CP = CarInterface.get_non_essential_params(platform) return CP