Allow device to be offline indefinitely

Added button to allow the device to be offline indefinitely.
This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent c1a7f1e3b0
commit c33e3e45db
5 changed files with 19 additions and 1 deletions

View File

@@ -302,7 +302,7 @@ def thermald_thread(end_event, hw_queue) -> None:
startup_conditions["time_valid"] = now > MIN_DATE
set_offroad_alert_if_changed("Offroad_InvalidTime", (not startup_conditions["time_valid"]) and peripheral_panda_present)
startup_conditions["up_to_date"] = params.get("Offroad_ConnectivityNeeded") is None or params.get_bool("DisableUpdates") or params.get_bool("SnoozeUpdate")
startup_conditions["up_to_date"] = params.get("OfflineMode") or params.get("Offroad_ConnectivityNeeded") is None or params.get_bool("DisableUpdates") or params.get_bool("SnoozeUpdate")
startup_conditions["not_uninstalling"] = not params.get_bool("DoUninstall")
startup_conditions["accepted_terms"] = params.get("HasAcceptedTerms") == terms_version