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.
This commit is contained in:
Ivan Grokhotkov 2020-01-02 10:44:45 +01:00 committed by bot
parent abe94e3b53
commit 34408026bb

View File

@ -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
}