mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02: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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user