ESP-IDF 5.1 ADC Oneshot missing channel setting (IDFGH-8218) #9711
Labels
Resolution: Done
Issue is done internally
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
ESP-IDF v5.1-dev-537-g91e8312f03
Operating System used.
macOS
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
No response
What is the expected behavior?
Like mentioned in the help files: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/adc_oneshot.html?highlight=oneshot, after creating the ADC instance the ADC IO should be specified. (adc_oneshot_chan_cfg_t). The Atten and Bitwidth options are accessible, but Channel is not. Checking the definition in the header file https://github.com/espressif/esp-idf/blob/master/components/esp_adc/include/esp_adc/adc_oneshot.h looks like a forgotten Channel:
What is the actual behavior?
It doesn't compile
Steps to reproduce.
Changing the legacy adc driver to the new one by help instructions
Build or installation Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: