bugfix: move adc_oneshot_power_acquire/release to adc_oneshot_read

Closes https://github.com/espressif/esp-idf/issues/10595
Closes https://github.com/espressif/esp-idf/issues/11386
This commit is contained in:
wuzhenghui
2023-05-18 10:29:50 +08:00
parent 8b7cd4dc08
commit ed076c2bc8
12 changed files with 18 additions and 7 deletions

View File

@@ -44,6 +44,7 @@ typedef enum {
*
* @param[in] mode See `sar_ctrl_ll_power_t`
*/
__attribute__((always_inline))
static inline void sar_ctrl_ll_set_power_mode_from_pwdet(sar_ctrl_ll_power_t mode)
{
if (mode == SAR_CTRL_LL_POWER_FSM) {