Skip to content

Commit bb8a5bd

Browse files
authored
Fix slow DM onboarding (#36932)
* slow * interesting * check * clean up
1 parent e4359e9 commit bb8a5bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selfdrive/ui/mici/layouts/onboarding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def show_event(self):
166166

167167
def _update_state(self):
168168
super()._update_state()
169-
if device.awake:
170-
ui_state.params.put_bool("IsDriverViewEnabled", True)
169+
if device.awake and not ui_state.params.get_bool("IsDriverViewEnabled"):
170+
ui_state.params.put_bool_nonblocking("IsDriverViewEnabled", True)
171171

172172
sm = ui_state.sm
173173
if sm.recv_frame.get("driverMonitoringState", 0) == 0:

0 commit comments

Comments
 (0)