Remove adc_gpio_init function

Function is deprecated. Functionality is folded into the adc[1,2]_config_channel_atten() functions.
https://www.esp32.com/viewtopic.php?t=25244
This commit is contained in:
Wouter Van Hoof 2022-12-19 21:54:43 +01:00
parent 33ca7b739b
commit cfebeb7c05

View file

@ -158,7 +158,6 @@ static void setup_adc(gpio_num_t measure)
{ {
// Init ADC // Init ADC
adc1_channel_t channel = gpio_to_adc[measure]; adc1_channel_t channel = gpio_to_adc[measure];
adc_gpio_init(ADC_UNIT_1, channel);
adc1_config_width(ADC_WIDTH_BIT_10); adc1_config_width(ADC_WIDTH_BIT_10);
adc1_config_channel_atten(channel, ADC_ATTEN_DB_11); adc1_config_channel_atten(channel, ADC_ATTEN_DB_11);
} }