From 9714e1c049e9135a082f1abbb9b94176442504ff Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Tue, 19 Apr 2022 17:26:57 +0200 Subject: [PATCH] Add wifi_no_sleep to user config --- tasmota/my_user_config.h | 1 + tasmota/settings.ino | 1 + 2 files changed, 2 insertions(+) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 7391a6db9..e55c5eda4 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -82,6 +82,7 @@ #define WIFI_ARP_INTERVAL 60 // [SetOption41] Send gratuitous ARP interval #define WIFI_SCAN_AT_RESTART false // [SetOption56] Scan Wi-Fi network at restart for configured AP's #define WIFI_SCAN_REGULARLY true // [SetOption57] Scan Wi-Fi network every 44 minutes for configured AP's +#define WIFI_NO_SLEEP false // [SetOption127] Sets Wifi in no-sleep mode which improves responsiveness on some routers // -- Syslog -------------------------------------- #define SYS_LOG_HOST "" // [LogHost] (Linux) syslog host diff --git a/tasmota/settings.ino b/tasmota/settings.ino index 72527235d..54b68a35a 100644 --- a/tasmota/settings.ino +++ b/tasmota/settings.ino @@ -942,6 +942,7 @@ void SettingsDefaultSet2(void) { SettingsUpdateText(SET_RGX_PASSWORD, PSTR(WIFI_RGX_PASSWORD)); Settings->sbflag1.range_extender = WIFI_RGX_STATE; Settings->sbflag1.range_extender_napt = WIFI_RGX_NAPT; + flag5.wifi_no_sleep |= WIFI_NO_SLEEP; // Syslog SettingsUpdateText(SET_SYSLOG_HOST, PSTR(SYS_LOG_HOST));