From f4e91750b9eaf60f2c684f5ebadc01e130a8d057 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Fri, 17 Oct 2025 17:10:21 -0500 Subject: [PATCH] lite --- frogpilot/common/frogpilot_variables.py | 2 +- system/manager/manager.py | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/frogpilot/common/frogpilot_variables.py b/frogpilot/common/frogpilot_variables.py index 1aa7feb61..6bd4f65c4 100644 --- a/frogpilot/common/frogpilot_variables.py +++ b/frogpilot/common/frogpilot_variables.py @@ -289,7 +289,7 @@ frogpilot_default_params: list[tuple[str, str | bytes, int, str]] = [ ("NavSettingTime24h", "0", 0, "0"), ("NewLongAPI", "0", 2, "1"), ("NNFF", "1", 2, "0"), - ("NNFFLite", "1", 2, "0"), + ("NNFFLite", "0", 2, "0"), ("NoLogging", "0", 2, "0"), ("NoUploads", "0", 2, "0"), ("NudgelessLaneChange", "0", 0, "0"), diff --git a/system/manager/manager.py b/system/manager/manager.py index 30cf1e6c6..f2979c52f 100755 --- a/system/manager/manager.py +++ b/system/manager/manager.py @@ -102,6 +102,14 @@ def manager_init() -> None: with open(migration_flag_file, "w") as f: f.write("migrated") + # One-time migration for NNFFLite to off + nnfflite_migration_flag_file = "/data/media/0/frogpilot_nnfflite_migrated.flag" + if not os.path.exists(nnfflite_migration_flag_file): + if params.get_bool("NNFFLite"): + params.put_bool("NNFFLite", False) + with open(nnfflite_migration_flag_file, "w") as f: + f.write("migrated") + # set dongle id reg_res = register(show_spinner=True) if reg_res: