From 7a8f3e1df3184900e786cd3dfacdca0f0928df50 Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Mon, 14 Oct 2019 12:27:17 +1000 Subject: [PATCH] fix charging ctrl toggle --- selfdrive/thermald.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/thermald.py b/selfdrive/thermald.py index a16dcb37c..ccea40d3d 100755 --- a/selfdrive/thermald.py +++ b/selfdrive/thermald.py @@ -324,7 +324,7 @@ def thermald_thread(): ts = sec_since_boot() # update variable status every 10 secs if ts - ts_last_update_vars > 10.: - dragon_charging_ctrl = True if params.get('DragonChargingCtrl') == "1" else False + dragon_charging_ctrl = True if params.get('DragonChargingCtrl', encoding='utf8') == "1" else False dragon_charging_max = int(params.get('DragonCharging')) dragon_discharging_min = int(params.get('DragonDisCharging')) ts_last_update_vars = ts