diff --git a/selfdrive/locationd/curvatured.py b/selfdrive/locationd/curvatured.py index 8f54317b0..d287f3d34 100644 --- a/selfdrive/locationd/curvatured.py +++ b/selfdrive/locationd/curvatured.py @@ -916,11 +916,10 @@ def main(): # Cache params every 60 seconds if sm.frame % 240 == 0: live_valid = sm.all_checks() and curvature_estimator.use_params - params.put_nonblocking("LiveCurvatureParameters", - curvature_estimator.get_msg(valid=sm.all_checks(), - live_valid=live_valid, - include_debug=True, - include_preview=False).to_bytes()) + params.put("LiveCurvatureParameters", curvature_estimator.get_msg(valid=sm.all_checks(), + live_valid=live_valid, + include_debug=True, + include_preview=False).to_bytes()) if __name__ == "__main__": diff --git a/selfdrive/ui/layouts/settings/ictoggles.py b/selfdrive/ui/layouts/settings/ictoggles.py index a4f1ccdac..10314fc67 100644 --- a/selfdrive/ui/layouts/settings/ictoggles.py +++ b/selfdrive/ui/layouts/settings/ictoggles.py @@ -217,6 +217,6 @@ class ICTogglesLayout(Widget): self._scroller.render(rect) def _toggle_callback(self, state: bool, param: str): - self._params.put_bool(param, state) + self._params.put_bool(param, state, block=True) if self._toggle_defs[param][3]: - self._params.put_bool("OnroadCycleRequested", True) + self._params.put_bool("OnroadCycleRequested", True, block=True)