forked from espressif/esp-idf
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:
@@ -63,8 +63,8 @@ void app_main(void)
|
|||||||
|
|
||||||
//-------------ADC1 Config---------------//
|
//-------------ADC1 Config---------------//
|
||||||
adc_oneshot_chan_cfg_t config = {
|
adc_oneshot_chan_cfg_t config = {
|
||||||
.bitwidth = ADC_BITWIDTH_DEFAULT,
|
|
||||||
.atten = EXAMPLE_ADC_ATTEN,
|
.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_CHAN0, &config));
|
||||||
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc1_handle, EXAMPLE_ADC1_CHAN1, &config));
|
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc1_handle, EXAMPLE_ADC1_CHAN1, &config));
|
||||||
|
Reference in New Issue
Block a user