From 1c0534d0a14f82e28bd99a034688ec492f3c0be5 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Thu, 7 Mar 2024 02:33:38 -0800 Subject: [PATCH] what's wrong with this? --- cereal | 2 +- selfdrive/car/toyota/carcontroller.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cereal b/cereal index c5c2a60f1a..c166a18a56 160000 --- a/cereal +++ b/cereal @@ -1 +1 @@ -Subproject commit c5c2a60f1aa796e7de464015349db3c336b79220 +Subproject commit c166a18a56c03d467c77d7a1f704d7ea57641217 diff --git a/selfdrive/car/toyota/carcontroller.py b/selfdrive/car/toyota/carcontroller.py index d8356c674b..817a4a82f6 100644 --- a/selfdrive/car/toyota/carcontroller.py +++ b/selfdrive/car/toyota/carcontroller.py @@ -144,7 +144,7 @@ class CarController(CarControllerBase): if self.frame % 6 == 0: desired_distance = 4 - CC.hudControl.distanceLines # this is flipped - if CS.pcm_follow_distance_values != desired_distance and CS.out.cruiseState.available: + if CS.pcm_follow_distance_values != desired_distance and CS.out.cruiseState.enabled: self.distance_button = not self.distance_button else: self.distance_button = 0