Skip to content

Commit

Permalink
Hot fix mid.
Browse files Browse the repository at this point in the history
  • Loading branch information
rav4kumar committed Jun 26, 2021
1 parent 7f2004e commit 82c697d
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 @@ -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
Expand Down

0 comments on commit 82c697d

Please sign in to comment.