From c2d6b5b1d2b1ef2c610ffe16a8637318f6e56a3f Mon Sep 17 00:00:00 2001 From: infiniteCable2 Date: Fri, 5 Jun 2026 18:08:07 +0200 Subject: [PATCH] adapt to upstream --- selfdrive/locationd/curvatured.py | 9 ++++----- selfdrive/ui/layouts/settings/ictoggles.py | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) 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)