Bugfix: Fix compile error with out of order designated initializer when using C++20 in ESP32 ULP ADC example

This commit is contained in:
Kampi
2023-03-11 14:42:18 +01:00
parent 11c59a2e69
commit 7905aa2c27

View File

@@ -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));