From 6e9070b6d9aa980c922c911687cb7e33312d6bc0 Mon Sep 17 00:00:00 2001 From: Xia Xiaotian Date: Wed, 13 Jun 2018 15:44:59 +0800 Subject: [PATCH] correct modem sleep API description --- components/esp32/include/esp_wifi.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/esp32/include/esp_wifi.h b/components/esp32/include/esp_wifi.h index 88f033096..d4c11c387 100644 --- a/components/esp32/include/esp_wifi.h +++ b/components/esp32/include/esp_wifi.h @@ -428,24 +428,24 @@ esp_err_t esp_wifi_scan_get_ap_records(uint16_t *number, wifi_ap_record_t *ap_re esp_err_t esp_wifi_sta_get_ap_info(wifi_ap_record_t *ap_info); /** - * @brief Set current power save type + * @brief Set current WiFi power save type * - * @attention Default power save type is WIFI_PS_NONE. + * @attention Default power save type is WIFI_PS_MIN_MODEM. * * @param type power save type * - * @return ESP_ERR_NOT_SUPPORTED: not supported yet + * @return ESP_OK: succeed */ esp_err_t esp_wifi_set_ps(wifi_ps_type_t type); /** - * @brief Get current power save type + * @brief Get current WiFi power save type * - * @attention Default power save type is WIFI_PS_NONE. + * @attention Default power save type is WIFI_PS_MIN_MODEM. * * @param[out] type: store current power save type * - * @return ESP_ERR_NOT_SUPPORTED: not supported yet + * @return ESP_OK: succeed */ esp_err_t esp_wifi_get_ps(wifi_ps_type_t *type);