Skip to content

Commit

Permalink
no startup dynamic follow profile (commaai#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane authored and Aragon7777 committed Aug 4, 2021
1 parent 16f60f3 commit 2acf519
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions selfdrive/controls/lib/dynamic_follow/df_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def __init__(self):

self.profile_pred = None
self.change_time = sec_since_boot()
self.first_run = True
self.last_is_auto = False

@property
Expand All @@ -51,10 +50,6 @@ def update(self):
if self.sm.updated['dynamicFollowButton']:
self.button_updated = True

if self.first_run:
df_out.changed = True # to show alert on start
self.first_run = False

if self.button_updated: # only update when button is first pressed
self.cur_user_profile = self.sm['dynamicFollowButton'].status

Expand Down

0 comments on commit 2acf519

Please sign in to comment.