Skip to content

Commit

Permalink
Update opendbc/car/hyundai/interface.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Young <[email protected]>
  • Loading branch information
sunnyhaibin and jyoung8607 authored Sep 27, 2024
1 parent 7b8f46c commit 68c6ae7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions opendbc/car/hyundai/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ class CarInterface(CarInterfaceBase):
def _get_params(ret: structs.CarParams, candidate, fingerprint, car_fw, experimental_long, docs) -> structs.CarParams:
ret.carName = "hyundai"

# Check the CAM bus fingerprint for known HDA2 steering messages (0x50 or 0x110) to determine if it is an HDA2 car.
cam_can = CanBus(None, fingerprint).CAM
hda2 = 0x50 in fingerprint[cam_can] or 0x110 in fingerprint[cam_can]

CAN = CanBus(None, fingerprint, hda2)

if candidate in CANFD_CAR:
Expand Down

0 comments on commit 68c6ae7

Please sign in to comment.