Skip to content

Commit 75509db

Browse files
committed
UI should initialize long before controlsd in normal conditions
1 parent 59ff17b commit 75509db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

selfdrive/car/toyota/carstate.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ def __init__(self, CP):
3636
if self.enable_distance_btn:
3737
# Previously was publishing from UI
3838
self.pm = messaging.PubMaster(['dynamicFollowButton'])
39+
# set param to true for next restart
40+
if self.CP.carFingerprint in TSS2_CAR:
41+
op_params.put('toyota_distance_btn', True)
3942

4043
def update(self, cp, cp_cam):
4144
ret = car.CarState.new_message()

0 commit comments

Comments
 (0)