From 9fe567174d4d875e6fcc9030442c8a9910cc385b Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Mon, 27 Oct 2025 15:10:10 -0500 Subject: [PATCH] NNFF on --- 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 25005724f..0ce0aa4cc 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]] = [ ("NavSettingLeftSide", "0", 0, "0"), ("NavSettingTime24h", "0", 0, "0"), ("NewLongAPI", "0", 2, "1"), - ("NNFF", "0", 2, "0"), + ("NNFF", "1", 2, "0"), ("NNFFLite", "0", 2, "0"), ("NoLogging", "0", 2, "0"), ("NoUploads", "0", 2, "0"), diff --git a/system/manager/manager.py b/system/manager/manager.py index 187e5aab3..68654232e 100755 --- a/system/manager/manager.py +++ b/system/manager/manager.py @@ -110,6 +110,14 @@ def manager_init() -> None: with open(nnfflite_migration_flag_file, "w") as f: f.write("migrated") + # One-time migration for NNFF to on + nnff_migration_flag_file = "/data/media/0/frogpilot_nnff_migrated.flag" + if not os.path.exists(nnff_migration_flag_file): + if params.get_bool("NNFF"): + params.put_bool("NNFF", True) + with open(nnff_migration_flag_file, "w") as f: + f.write("migrated") + # One-time migration for CEM settings cem_migration_flag_file = "/data/media/0/frogpilot_cem_migrated.flag" if not os.path.exists(cem_migration_flag_file):