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
This commit is contained in:
Chen Yi Qun 2020-11-20 14:54:05 +08:00 committed by bot
parent c82799c9c8
commit 579b842fd6

View File

@ -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