mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-04 06:11:06 +00:00 
			
		
		
		
	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:
		@@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
 * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
 | 
			
		||||
 *
 | 
			
		||||
 * SPDX-License-Identifier: Apache-2.0
 | 
			
		||||
 */
 | 
			
		||||
@@ -39,6 +39,7 @@ typedef enum {
 | 
			
		||||
 *
 | 
			
		||||
 * @param mode  See `sar_ctrl_ll_power_t`
 | 
			
		||||
 */
 | 
			
		||||
__attribute__((always_inline))
 | 
			
		||||
static inline void sar_ctrl_ll_set_power_mode(sar_ctrl_ll_power_t mode)
 | 
			
		||||
{
 | 
			
		||||
    if (mode == SAR_CTRL_LL_POWER_FSM) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user