Go to dashcam mode if locked out, fixes #1109

old-commit-hash: d08b56317fe31eadc1cffca8f1076acdd2144943
This commit is contained in:
Willem Melching
2020-03-18 11:38:00 -07:00
parent 52f3c1aca3
commit c3d7d8d6af
+4 -1
View File
@@ -443,6 +443,10 @@ def controlsd_thread(sm=None, pm=None, can_sock=None):
passive = passive or not openpilot_enabled_toggle
# Passive if internet needed
internet_needed = params.get("Offroad_ConnectivityNeeded", encoding='utf8') is not None
passive = passive or internet_needed
# Pub/Sub Sockets
if pm is None:
pm = messaging.PubMaster(['sendcan', 'controlsState', 'carState', 'carControl', 'carEvents', 'carParams'])
@@ -517,7 +521,6 @@ def controlsd_thread(sm=None, pm=None, can_sock=None):
# controlsd is driven by can recv, expected at 100Hz
rk = Ratekeeper(100, print_delay_threshold=None)
internet_needed = params.get("Offroad_ConnectivityNeeded", encoding='utf8') is not None
prof = Profiler(False) # off by default