adapt to upstream

This commit is contained in:
infiniteCable2
2026-06-05 18:08:07 +02:00
parent 63d84e7413
commit c2d6b5b1d2
2 changed files with 6 additions and 7 deletions
+4 -5
View File
@@ -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__":
+2 -2
View File
@@ -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)