Skip to content

Commit

Permalink
Default wifi-on-interval for lll resets to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
CapnBry committed Jan 24, 2024
1 parent 465ff09 commit 6e152fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/OPTIONS/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
1 change: 1 addition & 0 deletions src/python/build_flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e152fa

Please sign in to comment.