diff --git a/selfdrive/car/hyundai/interface.py b/selfdrive/car/hyundai/interface.py index 331266d995..b72d308ec0 100644 --- a/selfdrive/car/hyundai/interface.py +++ b/selfdrive/car/hyundai/interface.py @@ -50,8 +50,9 @@ class CarInterface(CarInterfaceBase): ret.flags |= HyundaiFlags.EV.value if candidate in CANFD_CAR: - if 0x105 in fingerprint[CAN.ECAN if hda2 else CAN.ECAN]: + if 0x105 in fingerprint[CAN.ECAN]: ret.flags |= HyundaiFlags.HYBRID.value + assert bool(ret.flags & HyundaiFlags.HYBRID) is (candidate in HYBRID_CAR) # detect HDA2 with ADAS Driving ECU if hda2: