From ad11f494ae680b8a8a734eb57efad3449ddc3700 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 11 Mar 2024 20:27:09 -0700 Subject: [PATCH] fix that --- selfdrive/controls/controlsd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 341041740a..e2268d4fa9 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -829,11 +829,11 @@ class Controls: self.CS_prev = CS - def read_personality_param(self): + def read_personality_param(self) -> int: try: - self.personality = int(self.params.get('LongitudinalPersonality')) + return int(self.params.get('LongitudinalPersonality')) except (ValueError, TypeError): - self.personality = log.LongitudinalPersonality.standard + return log.LongitudinalPersonality.standard def params_thread(self, evt): while not evt.is_set():