From 5fe6721fc7378bfb5e6b95df7ee0b397d6ff2332 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 30 Jan 2024 22:04:58 -0800 Subject: [PATCH] passes --- selfdrive/car/hyundai/interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: