forked from espressif/esp-idf
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---------------//
|
||||
// Note: when changing channel here, also change 'adc_channel' constant in adc.S
|
||||
adc_oneshot_chan_cfg_t config = {
|
||||
.bitwidth = ADC_BITWIDTH_DEFAULT,
|
||||
.atten = ADC_ATTEN_DB_11,
|
||||
.bitwidth = ADC_BITWIDTH_DEFAULT,
|
||||
};
|
||||
ESP_ERROR_CHECK(adc_oneshot_config_channel(adc1_handle, ADC_CHANNEL_6, &config));
|
||||
|
||||
|
Reference in New Issue
Block a user