From 82c697da6cdb6dfea9cdde19e55900942a094e07 Mon Sep 17 00:00:00 2001 From: rav4kumar <36933347+rav4kumar@users.noreply.github.com> Date: Sat, 26 Jun 2021 08:20:23 -0700 Subject: [PATCH] Hot fix mid. --- selfdrive/car/toyota/carstate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/toyota/carstate.py b/selfdrive/car/toyota/carstate.py index daf19b4ac730f7..2f3ac5e49425ce 100644 --- a/selfdrive/car/toyota/carstate.py +++ b/selfdrive/car/toyota/carstate.py @@ -133,7 +133,7 @@ def update(self, cp, cp_cam): #Arne distance button if self.read_distance_lines != cp.vl["PCM_CRUISE_SM"]['DISTANCE_LINES'] and physical_buttons_DF: self.read_distance_lines = cp.vl["PCM_CRUISE_SM"]['DISTANCE_LINES'] - put_nonblocking('dp_following_profile', str(int(max(self.read_distance_lines - 1 , 0)))) + put_nonblocking('dp_following_profile', str(int(max(self.read_distance_lines, 0)))) put_nonblocking('dp_last_modified',str(floor(time.time()))) ret.leftBlinker = cp.vl["STEERING_LEVERS"]["TURN_SIGNALS"] == 1