From 34408026bbfbb3c2ee158b1e5c569e7348ad7233 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 2 Jan 2020 10:44:45 +0100 Subject: [PATCH] wifi: add set_xpd_sar override Wi-Fi enables and disables ADC when exiting and entering sleep mode. Coordinate ADC power state with other modules, using adc_power_acquire and adc_power_release. --- components/esp_wifi/src/wifi_init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/esp_wifi/src/wifi_init.c b/components/esp_wifi/src/wifi_init.c index 7aa8cae0f3..85d74a777c 100644 --- a/components/esp_wifi/src/wifi_init.c +++ b/components/esp_wifi/src/wifi_init.c @@ -280,11 +280,9 @@ void set_xpd_sar(bool en) } s_wifi_adc_xpd_flag = en; -#if !CONFIG_IDF_TARGET_ESP32C3 if (en) { adc_power_acquire(); } else { adc_power_release(); } -#endif }