pull/31792/head
Shane Smiskol 1 year ago
parent a959a76847
commit ad11f494ae
  1. 6
      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():

Loading…
Cancel
Save