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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user