mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-01 05:33:49 +08:00
Disable internet connectivity checks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user