Skip to content

Commit

Permalink
Merge branch 'fix/pr_14304' into 'master'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Icarus113 committed Aug 6, 2024
2 parents 82e76ab + e1ef3f7 commit 88c45ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 88c45ec

Please sign in to comment.