Skip to content

Commit 22b55d7

Browse files
committed
wifi: add ps mode
1 parent e8988ff commit 22b55d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main/src/device/wifi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ void wifi0_init(void)
6161
} else {
6262
ESP_LOGW(TAG, "no wifi configuration available");
6363
}
64+
esp_wifi_set_ps(WIFI_PS_MIN_MODEM);
6465
uint8_t wifi0_mac[6] = {0};
6566
ESP_ERROR_CHECK(esp_wifi_get_mac(ESP_IF_WIFI_STA, wifi0_mac));
6667
snprintf(wifi0_mac_str, sizeof(wifi0_mac_str), MACSTR, MAC2STR(wifi0_mac));

0 commit comments

Comments
 (0)