diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index 923f661fa0..928a338092 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -258,15 +258,16 @@ def thermald_thread(): except Exception: cloudlog.exception("Error getting network status") - try: - gsm_roaming = params.get_bool("GsmRoaming") - if gsm_roaming != last_gsm_roaming: - last_gsm_roaming = gsm_roaming - home_only = "no" if gsm_roaming else "yes" - os.system(f"nmcli connection modify --temporary lte gsm.home-only {home_only}") + if TICI: + try: + gsm_roaming = params.get_bool("GsmRoaming") + if gsm_roaming != last_gsm_roaming: + last_gsm_roaming = gsm_roaming + 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") + except Exception: + cloudlog.exception("Error setting roaming") msg.deviceState.freeSpacePercent = get_available_percent(default=100.0) msg.deviceState.memoryUsagePercent = int(round(psutil.virtual_memory().percent))