Merge branch 'fix/pr_14304' into 'master'

adc: fixed attributes order in example to match the declaration in oneshot example (PR 14304)

Closes IDFGH-13395 and IDFGH-13396

See merge request espressif/esp-idf!32611
This commit is contained in:
Armando (Dou Yiwen)
2024-08-06 12:04:42 +08:00

View File

@@ -63,8 +63,8 @@ void app_main(void)
//-------------ADC1 Config---------------//
adc_oneshot_chan_cfg_t config = {
.bitwidth = ADC_BITWIDTH_DEFAULT,
.atten = EXAMPLE_ADC_ATTEN,
.bitwidth = ADC_BITWIDTH_DEFAULT,
};
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc1_handle, EXAMPLE_ADC1_CHAN0, &config));
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc1_handle, EXAMPLE_ADC1_CHAN1, &config));