Skip to content

Commit

Permalink
Update carstate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
arne182 authored Jan 8, 2021
1 parent d70472a commit ca499cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/toyota/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca499cf

Please sign in to comment.