From 6ec4c7bdacf9a68e1bd9414426e6c75c649b9bd5 Mon Sep 17 00:00:00 2001 From: Brian Hanson Date: Sun, 3 May 2026 22:08:08 -0500 Subject: [PATCH] controlsd: ScreenDisplayMode init uses put_int, not put_bool Every other reference treats ScreenDisplayMode as an int (range 0-4). The init line was using put_bool(0) which happened to write the same "0" string and read back fine via get_int, but the type mismatch was misleading. --- selfdrive/controls/controlsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index e050505..63124e0 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -77,7 +77,7 @@ class Controls: self.params_storage = Params("/persist/params") self.params_memory.put_bool("CPTLkasButtonAction", False) - self.params_memory.put_bool("ScreenDisplayMode", 0) + self.params_memory.put_int("ScreenDisplayMode", 0) self.radarless_model = self.params.get("Model", encoding='utf-8') in RADARLESS_MODELS