From f8c691faafd4e8538ecdce387ea0237fa6892e90 Mon Sep 17 00:00:00 2001 From: aditi_lonkar Date: Tue, 23 Mar 2021 10:30:32 +0530 Subject: [PATCH] esp_wifi: Fixes issue of crashing when verbose logs are enabled. --- components/driver/adc_common.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/components/driver/adc_common.c b/components/driver/adc_common.c index 0cf33ff7ef..6ac2eacb5e 100644 --- a/components/driver/adc_common.c +++ b/components/driver/adc_common.c @@ -121,22 +121,16 @@ static esp_pm_lock_handle_t s_adc2_arbiter_lock; void adc_power_acquire(void) { - bool powered_on = false; ADC_ENTER_CRITICAL(); s_adc_power_on_cnt++; if (s_adc_power_on_cnt == 1) { adc_power_on_internal(); - powered_on = true; } ADC_EXIT_CRITICAL(); - if (powered_on) { - ESP_LOGV(ADC_TAG, "%s: ADC powered on", __func__); - } } void adc_power_release(void) { - bool powered_off = false; ADC_ENTER_CRITICAL(); s_adc_power_on_cnt--; /* Sanity check */ @@ -146,12 +140,8 @@ void adc_power_release(void) abort(); } else if (s_adc_power_on_cnt == 0) { adc_power_off_internal(); - powered_off = true; } ADC_EXIT_CRITICAL(); - if (powered_off) { - ESP_LOGV(ADC_TAG, "%s: ADC powered off", __func__); - } } static void adc_power_on_internal(void) @@ -612,4 +602,4 @@ esp_err_t adc_vref_to_gpio(adc_unit_t adc_unit, gpio_num_t gpio) //Configure RTC gpio, Only ADC2's channels IO are supported to output reference voltage. adc_gpio_init(ADC_UNIT_2, ch); return ESP_OK; -} \ No newline at end of file +}