From 07b8c4b0a0e5a42251dbe33811d30f9f42ac697b Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Thu, 10 Oct 2019 22:07:05 +1000 Subject: [PATCH] Fix python3 params.get issue in appd --- selfdrive/dragonpilot/appd/appd.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/selfdrive/dragonpilot/appd/appd.py b/selfdrive/dragonpilot/appd/appd.py index 79b46a7f0..c216c8c69 100644 --- a/selfdrive/dragonpilot/appd/appd.py +++ b/selfdrive/dragonpilot/appd/appd.py @@ -61,24 +61,24 @@ def main(gctx=None): # allow user to manually start/stop app if dragon_enable_tomtom: - status = params.get('DragonRunTomTom') + status = params.get('DragonRunTomTom', encoding='utf8') if not status == "0": tomtom_is_running = exec_app(status, tomtom, tomtom_main) - params.put('DragonRunTomTom', '0') + put_nonblocking('DragonRunTomTom', '0') manual_tomtom = status != "0" if dragon_enable_autonavi: - status = params.get('DragonRunAutonavi') + status = params.get('DragonRunAutonavi', encoding='utf8') if not status == "0": autonavi_is_running = exec_app(status, autonavi, autonavi_main) - params.put('DragonRunAutonavi', '0') + put_nonblocking('DragonRunAutonavi', '0') manual_autonavi = status != "0" if dragon_enable_mixplorer: - status = params.get('DragonRunMixplorer') + status = params.get('DragonRunMixplorer', encoding='utf8') if not status == "0": mixplorer_is_running = exec_app(status, mixplorer, mixplorer_main) - params.put('DragonRunMixplorer', '0') + put_nonblocking('DragonRunMixplorer', '0') # if manual control is set, we do not allow any of the auto actions auto_tomtom = not manual_tomtom and dragon_enable_tomtom and dragon_boot_tomtom