fix appd/dashcamd error due to changes in messaging

This commit is contained in:
dragonpilot
2019-11-06 16:34:14 +10:00
parent ad40d8f66d
commit 7750dc7784
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python2.7
#!/usr/bin/env python3
import time
import selfdrive.messaging as messaging
@@ -66,7 +66,7 @@ def main(gctx=None):
system("pm disable %s" % gpsservice)
system("pm disable %s" % aegis)
thermal_sock = messaging.sub_sock(service_list['thermal'].port)
thermal_sock = messaging.sub_sock('thermal')
while dragon_enable_tomtom or dragon_enable_autonavi or dragon_enable_aegis or dragon_enable_mixplorer or dragon_greypanda_mode:
+1 -1
View File
@@ -28,7 +28,7 @@ def main(gctx=None):
if not os.path.exists(dashcam_videos):
os.makedirs(dashcam_videos)
thermal_sock = messaging.sub_sock(service_list['thermal'].port)
thermal_sock = messaging.sub_sock('thermal')
while 1:
if params.get("DragonEnableDashcam", encoding='utf8') == "1":
now = datetime.datetime.now()