enable wifi sleep for c3 (#23117)

This commit is contained in:
Jason2866 2025-03-07 14:43:31 +01:00 committed by GitHub
parent 3f93d2deee
commit c926b4b3a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,9 +185,9 @@ void WiFiSetSleepMode(void)
} }
*/ */
bool wifi_no_sleep = Settings->flag5.wifi_no_sleep; bool wifi_no_sleep = Settings->flag5.wifi_no_sleep;
#ifdef CONFIG_IDF_TARGET_ESP32C3 //#ifdef CONFIG_IDF_TARGET_ESP32C3
wifi_no_sleep = true; // Temporary patch for IDF4.4, wifi sleeping may cause wifi drops // wifi_no_sleep = true; // Temporary patch for IDF4.4, wifi sleeping may cause wifi drops
#endif //#endif
if (0 == TasmotaGlobal.sleep || wifi_no_sleep) { if (0 == TasmotaGlobal.sleep || wifi_no_sleep) {
if (!TasmotaGlobal.wifi_stay_asleep) { if (!TasmotaGlobal.wifi_stay_asleep) {
WiFiHelper::setSleepMode(WIFI_NONE_SLEEP); // Disable sleep WiFiHelper::setSleepMode(WIFI_NONE_SLEEP); // Disable sleep