diff --git a/tasmota/support_wifi.ino b/tasmota/support_wifi.ino index c4ddabf36..6bb49d239 100644 --- a/tasmota/support_wifi.ino +++ b/tasmota/support_wifi.ino @@ -164,7 +164,12 @@ void WiFiSetSleepMode(void) WiFi.setSleepMode(WIFI_NONE_SLEEP); // Disable sleep } } else { - if (Settings->flag3.sleep_normal) { // SetOption60 - Enable normal sleep instead of dynamic sleep +#ifdef CONFIG_IDF_TARGET_ESP32C3 + if (!TasmotaGlobal.wifi_stay_asleep) { + WiFi.setSleepMode(WIFI_NONE_SLEEP); // Disable sleep + } else +#endif + if (Settings->flag3.sleep_normal) { // SetOption60 - Enable normal sleep instead of dynamic sleep WiFi.setSleepMode(WIFI_LIGHT_SLEEP); // Allow light sleep during idle times } else { WiFi.setSleepMode(WIFI_MODEM_SLEEP); // Sleep (Esp8288/Arduino core and sdk default)