From ca4841444b754a89bfe77b302cf18044987321cf Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 26 Jun 2023 13:44:51 -0700 Subject: [PATCH] use it here --- 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 4a8f020c20..59c532fed9 100644 --- a/selfdrive/car/toyota/interface.py +++ b/selfdrive/car/toyota/interface.py @@ -220,7 +220,7 @@ class CarInterface(CarInterfaceBase): # cars w/ DSU disconnected. # tss2 cars but ACC CMD is not coming from radar. ret.openpilotLongitudinalControl = ret.enableDsu or candidate in (TSS2_CAR - RADAR_ACC_CAR) - if candidate in RADAR_ACC_CAR: + if ret.radarUnavailable: # On TSS2 radar-based ACC cars, the SDSU is a filter on the ACC_CONTROL message from the radar ret.openpilotLongitudinalControl = ret.experimentalLongitudinalAvailable and experimental_long else: