Change wwan power command (#20874)

pull/20877/head
Willem Melching 4 years ago committed by GitHub
parent b93ccc465d
commit 4ca0edda97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/thermald/thermald.py

@ -351,8 +351,8 @@ def thermald_thread():
params.put_bool("IsOffroad", not should_start)
HARDWARE.set_power_save(not should_start)
if TICI and not params.get_bool("EnableLteOnroad"):
fxn = "stop" if should_start else "start"
os.system(f"sudo systemctl {fxn} --no-block lte")
fxn = "off" if should_start else "on"
os.system(f"nmcli radio wwan {fxn}")
if should_start:
off_ts = None

Loading…
Cancel
Save