Skip to content

Commit

Permalink
fix interfaces usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Sep 4, 2024
1 parent 1c19fd0 commit f383e5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opendbc/car/car_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand All @@ -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
Expand All @@ -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

0 comments on commit f383e5c

Please sign in to comment.