Page 1 of 1

ESP32S2 ADC different attenuation on every channel

Posted: Wed Apr 12, 2023 10:12 am
by pc1010
Hello everyone!
I'm having an issue with setting different attenuation on ADC channels with IDF 5.0.1 using adc_continuous_config function.
Whenever I do it, the function is aborting with "ESP_ERROR_CHECK failed: esp_err_t 0x102 (ESP_ERR_INVALID_ARG)".
I see that in adc_continuous.c:588 there is a check "} else if (handle->adc1_atten != pat->atten) {" that checks if all channels have the same attenuation.
In previous releases it was possible to configure it separately :?
Thanks