From 579b842fd682304bba58187a390a143256ef7a29 Mon Sep 17 00:00:00 2001 From: Chen Yi Qun Date: Fri, 20 Nov 2020 14:54:05 +0800 Subject: [PATCH] Driver(ADC): remove ESP_LOGD from adc_set_init_code ESP_LOGD is called from adc_set_init_code, which is invoked from a critical section. Closes: https://github.com/espressif/esp-idf/issues/6091 --- components/driver/adc_common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/components/driver/adc_common.c b/components/driver/adc_common.c index 6e0feb763d..ee44cef816 100644 --- a/components/driver/adc_common.c +++ b/components/driver/adc_common.c @@ -246,7 +246,6 @@ static inline void adc_set_init_code(adc_ll_num_t adc_n, adc_channel_t channel) adc_atten_t atten = adc_hal_get_atten(adc_n, channel); uint32_t cal_val = adc_hal_calibration(adc_n, channel, atten, true, false); adc_hal_set_calibration_param(adc_n, cal_val); - ESP_LOGD(ADC_TAG, "Set cal adc %d\n", cal_val); } #endif