From 94e8816e46ce1ca6426cfd285b7b2819433c7609 Mon Sep 17 00:00:00 2001 From: ShaneSmiskol Date: Tue, 27 Jul 2021 14:37:09 -0700 Subject: [PATCH] clean up --- launch_chffrplus.sh | 1 - selfdrive/thermald/thermald.py | 7 +++---- selfdrive/ui/qt/offroad/settings.cc | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/launch_chffrplus.sh b/launch_chffrplus.sh index 9abf85a524..5be462f551 100755 --- a/launch_chffrplus.sh +++ b/launch_chffrplus.sh @@ -101,7 +101,6 @@ function tici_init { sudo su -c 'echo "performance" > /sys/class/devfreq/soc:qcom,memlat-cpu0/governor' sudo su -c 'echo "performance" > /sys/class/devfreq/soc:qcom,memlat-cpu4/governor' nmcli connection modify --temporary lte gsm.auto-config yes - nmcli connection modify --temporary lte gsm.home-only yes # set success flag for current boot slot sudo abctl --set_success diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index 3fa5329cfc..923f661fa0 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -259,12 +259,11 @@ def thermald_thread(): cloudlog.exception("Error getting network status") try: - gsm_roaming = params.get("GsmRoaming") + gsm_roaming = params.get_bool("GsmRoaming") if gsm_roaming != last_gsm_roaming: last_gsm_roaming = gsm_roaming - roam = "yes" if gsm_roaming else "no" - print(f"Setting roaming: {roam}") - os.system(f"nmcli connection modify --temporary lte gsm.home-only {roam}") + home_only = "no" if gsm_roaming else "yes" + os.system(f"nmcli connection modify --temporary lte gsm.home-only {home_only}") except Exception: cloudlog.exception("Error setting roaming") diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 4fdf5af304..1bce52d547 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -63,8 +63,8 @@ TogglesPanel::TogglesPanel(QWidget *parent) : QWidget(parent) { ParamControl *record_toggle = new ParamControl("RecordFront", "Record and Upload Driver Camera", - "Upload data from the driver facing camera and help improve the driver monitoring algorithm.", - "../assets/offroad/icon_monitoring.png", + "Upload data from the driver facing camera and help improve the driver monitoring algorithm.", + "../assets/offroad/icon_monitoring.png", this); toggles.append(record_toggle); toggles.append(new ParamControl("EndToEndToggle",