diff --git a/selfdrive/ui/layouts/settings/common.py b/selfdrive/ui/layouts/settings/common.py index bba8606e6..13d1c743d 100644 --- a/selfdrive/ui/layouts/settings/common.py +++ b/selfdrive/ui/layouts/settings/common.py @@ -2,4 +2,4 @@ from openpilot.selfdrive.ui.ui_state import ui_state def restart_needed_callback(_=None): - ui_state.params.put_bool("OnroadCycleRequested", True) + ui_state.params.put_bool_nonblocking("OnroadCycleRequested", True) diff --git a/selfdrive/ui/mici/layouts/onboarding.py b/selfdrive/ui/mici/layouts/onboarding.py index 054d719bd..85731564e 100644 --- a/selfdrive/ui/mici/layouts/onboarding.py +++ b/selfdrive/ui/mici/layouts/onboarding.py @@ -109,7 +109,7 @@ class TrainingGuideDMTutorial(NavWidget): # Disable driver monitoring model when device times out for inactivity def inactivity_callback(): - ui_state.params.put_bool("IsDriverViewEnabled", False) + ui_state.params.put_bool_nonblocking("IsDriverViewEnabled", False) device.add_interactive_timeout_callback(inactivity_callback) diff --git a/selfdrive/ui/mici/onroad/driver_camera_dialog.py b/selfdrive/ui/mici/onroad/driver_camera_dialog.py index df5afe2e7..ddc084c14 100644 --- a/selfdrive/ui/mici/onroad/driver_camera_dialog.py +++ b/selfdrive/ui/mici/onroad/driver_camera_dialog.py @@ -41,7 +41,7 @@ class BaseDriverCameraDialog(Widget): def show_event(self): super().show_event() - ui_state.params.put_bool("IsDriverViewEnabled", True) + ui_state.params.put_bool_nonblocking("IsDriverViewEnabled", True) self._publish_alert_sound(None) device.set_override_interactive_timeout(300) ui_state.params.remove("DriverTooDistracted") @@ -49,7 +49,7 @@ class BaseDriverCameraDialog(Widget): def hide_event(self): super().hide_event() - ui_state.params.put_bool("IsDriverViewEnabled", False) + ui_state.params.put_bool_nonblocking("IsDriverViewEnabled", False) device.set_override_interactive_timeout(None) def _handle_mouse_release(self, _): diff --git a/selfdrive/ui/onroad/exp_button.py b/selfdrive/ui/onroad/exp_button.py index 9a92ebc3c..ff0bad747 100644 --- a/selfdrive/ui/onroad/exp_button.py +++ b/selfdrive/ui/onroad/exp_button.py @@ -36,7 +36,7 @@ class ExpButton(Widget): super()._handle_mouse_release(_) if self._is_toggle_allowed(): new_mode = not self._experimental_mode - self._params.put_bool("ExperimentalMode", new_mode) + self._params.put_bool_nonblocking("ExperimentalMode", new_mode) # Hold new state temporarily self._held_mode = new_mode