mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
parent
abe94e3b53
commit
34408026bb
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user