mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
Bugfix: Fix compile error with out of order designated initializer when using C++20 in ESP32 ULP ADC example
This commit is contained in:
@@ -72,8 +72,8 @@ static void init_ulp_program(void)
|
|||||||
//-------------ADC1 Channel Config---------------//
|
//-------------ADC1 Channel Config---------------//
|
||||||
// Note: when changing channel here, also change 'adc_channel' constant in adc.S
|
// Note: when changing channel here, also change 'adc_channel' constant in adc.S
|
||||||
adc_oneshot_chan_cfg_t config = {
|
adc_oneshot_chan_cfg_t config = {
|
||||||
.bitwidth = ADC_BITWIDTH_DEFAULT,
|
|
||||||
.atten = ADC_ATTEN_DB_11,
|
.atten = ADC_ATTEN_DB_11,
|
||||||
|
.bitwidth = ADC_BITWIDTH_DEFAULT,
|
||||||
};
|
};
|
||||||
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc1_handle, ADC_CHANNEL_6, &config));
|
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc1_handle, ADC_CHANNEL_6, &config));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user