Skip to content

Commit

Permalink
adc_oneshot_chan_cfg_t config: Fix attributes order in example to mat…
Browse files Browse the repository at this point in the history
…ch the declaration

Closes #14304
Closes #14303
  • Loading branch information
lboue authored and Icarus113 committed Aug 6, 2024
1 parent 82e76ab commit e1ef3f7
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 e1ef3f7

Please sign in to comment.