mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-10 11:52:10 +08:00
tici: toggle wwan when stuck registered
old-commit-hash: 38380612d5372b8e4949a50d3c7db9da840eea32
This commit is contained in:
@@ -245,6 +245,10 @@ def thermald_thread():
|
||||
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")
|
||||
registered_count = 0
|
||||
|
||||
except Exception:
|
||||
cloudlog.exception("Error getting network status")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user