From 6d8a67e4e7f2e75b07c1da501f8b6969fd936851 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 26 Jun 2023 12:52:58 -0700 Subject: [PATCH] this is a better check? --- selfdrive/car/toyota/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/toyota/interface.py b/selfdrive/car/toyota/interface.py index f094ec11d5..4a8f020c20 100644 --- a/selfdrive/car/toyota/interface.py +++ b/selfdrive/car/toyota/interface.py @@ -212,7 +212,7 @@ class CarInterface(CarInterfaceBase): ret.enableDsu = len(found_ecus) > 0 and Ecu.dsu not in found_ecus and candidate not in (NO_DSU_CAR | UNSUPPORTED_DSU_CAR) and not (ret.flags & ToyotaFlags.SMART_DSU) ret.enableGasInterceptor = 0x201 in fingerprint[0] - ret.radarUnavailable = candidate in RADAR_ACC_CAR + ret.radarUnavailable = DBC[candidate]['radar'] is None # candidate in RADAR_ACC_CAR ret.experimentalLongitudinalAvailable = ret.radarUnavailable and bool(ret.flags & ToyotaFlags.SMART_DSU) # radar ACC cars w/ smart-DSU installed and experimental_long is enabled.