From 7750dc7784fcecda1825b7cf4dba3a97075c87df Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Wed, 6 Nov 2019 16:34:14 +1000 Subject: [PATCH] fix appd/dashcamd error due to changes in messaging --- selfdrive/dragonpilot/appd/appd.py | 4 ++-- selfdrive/dragonpilot/dashcamd/dashcamd.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/dragonpilot/appd/appd.py b/selfdrive/dragonpilot/appd/appd.py index 6923dd87b..df0140971 100644 --- a/selfdrive/dragonpilot/appd/appd.py +++ b/selfdrive/dragonpilot/appd/appd.py @@ -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: diff --git a/selfdrive/dragonpilot/dashcamd/dashcamd.py b/selfdrive/dragonpilot/dashcamd/dashcamd.py index a72a58ac9..c56a4a6d9 100644 --- a/selfdrive/dragonpilot/dashcamd/dashcamd.py +++ b/selfdrive/dragonpilot/dashcamd/dashcamd.py @@ -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()