From ca499cf78e03bbb71973c63152360f87eb064421 Mon Sep 17 00:00:00 2001 From: Arne Schwarck Date: Fri, 8 Jan 2021 20:34:59 +0100 Subject: [PATCH] Update carstate.py --- 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 d1bcc16ea219b8..8698adb19bfbab 100644 --- a/selfdrive/car/toyota/carstate.py +++ b/selfdrive/car/toyota/carstate.py @@ -95,7 +95,7 @@ def update(self, cp, cp_cam): if self.read_distance_lines != cp.vl["PCM_CRUISE_SM"]['DISTANCE_LINES']: self.read_distance_lines = cp.vl["PCM_CRUISE_SM"]['DISTANCE_LINES'] - Params().put('dp_dynamic_follow', int(max(self.read_distance_lines - 1, 0))) + Params().put('dp_dynamic_follow', str(int(max(self.read_distance_lines - 1, 0)))) if not travis: self.sm.update(0)