pull/21750/head
ShaneSmiskol 4 years ago
parent 94e8816e46
commit 66e175a601
  1. 17
      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))

Loading…
Cancel
Save