Disable internet connectivity checks

This commit is contained in:
James
2025-12-01 12:00:00 -07:00
parent da430cf89e
commit 5cb41866b3
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -317,7 +317,7 @@ def hardware_thread(end_event, hw_queue) -> None:
# **** starting logic ****
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"] = True
startup_conditions["no_excessive_actuation"] = params.get("Offroad_ExcessiveActuation") is None
startup_conditions["not_uninstalling"] = not params.get_bool("DoUninstall")
startup_conditions["accepted_terms"] = params.get("HasAcceptedTerms") == terms_version
+4 -4
View File
@@ -35,11 +35,11 @@ FINALIZED = os.path.join(STAGING_ROOT, "finalized")
OVERLAY_INIT = Path(os.path.join(BASEDIR, ".overlay_init"))
# do not allow to engage after this many hours onroad and this many routes
HOURS_NO_CONNECTIVITY_MAX = 27
ROUTES_NO_CONNECTIVITY_MAX = 84
HOURS_NO_CONNECTIVITY_MAX = 24 * 365 * 100
ROUTES_NO_CONNECTIVITY_MAX = 9001
# send an offroad prompt after this many hours onroad and this many routes
HOURS_NO_CONNECTIVITY_PROMPT = 23
ROUTES_NO_CONNECTIVITY_PROMPT = 80
HOURS_NO_CONNECTIVITY_PROMPT = 24 * 365 * 100
ROUTES_NO_CONNECTIVITY_PROMPT = 9001
class UserRequest: