From 6e152fa2b2460b1205d272cb35625a0bb4c6e339 Mon Sep 17 00:00:00 2001 From: Bryan Mayland Date: Tue, 23 Jan 2024 20:45:26 -0500 Subject: [PATCH] Default wifi-on-interval for lll resets to 60s --- src/lib/OPTIONS/options.cpp | 2 +- src/python/build_flags.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/OPTIONS/options.cpp b/src/lib/OPTIONS/options.cpp index aca5b5e0b3..58f487ed7a 100644 --- a/src/lib/OPTIONS/options.cpp +++ b/src/lib/OPTIONS/options.cpp @@ -313,7 +313,7 @@ static void options_LoadFromFlashOrFile(EspFlashStream &strmFlash) { firmwareOptions.hasUID = false; } - int32_t wifiInterval = doc["wifi-on-interval"] | -1; + int32_t wifiInterval = doc["wifi-on-interval"] | 60; firmwareOptions.wifi_auto_on_interval = wifiInterval == -1 ? -1 : wifiInterval * 1000; strlcpy(firmwareOptions.home_wifi_ssid, doc["wifi-ssid"] | "", sizeof(firmwareOptions.home_wifi_ssid)); strlcpy(firmwareOptions.home_wifi_password, doc["wifi-password"] | "", sizeof(firmwareOptions.home_wifi_password)); diff --git a/src/python/build_flags.py b/src/python/build_flags.py index 4ba7d1577b..49f2ab4218 100644 --- a/src/python/build_flags.py +++ b/src/python/build_flags.py @@ -137,6 +137,7 @@ def get_version(): return string_to_ascii(env.get('GIT_VERSION')) json_flags['flash-discriminator'] = randint(1,2**32-1) +json_flags['wifi-on-interval'] = -1 process_flags("user_defines.txt") process_flags("super_defines.txt") # allow secret super_defines to override user_defines