mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 02:52:04 +08:00
use nmcli conn up lte to bring out of registered state
old-commit-hash: eb3144ef71296e29420407d8f18426546f79213a
This commit is contained in:
@@ -255,10 +255,8 @@ def thermald_thread():
|
||||
registered_count = 0
|
||||
|
||||
if registered_count > 10:
|
||||
cloudlog.warning(f"Modem stuck in registered state {network_info}")
|
||||
|
||||
os.system("nmcli radio wwan off")
|
||||
os.system("nmcli radio wwan on")
|
||||
cloudlog.warning(f"Modem stuck in registered state {network_info}. nmcli conn up lte")
|
||||
os.system("nmcli conn up lte")
|
||||
registered_count = 0
|
||||
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user