mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
Merge branch 'contrib/github_pr_10970' into 'release/v5.0'
Bugfix: Fix compile error for ESP32 FSM ULP ADC Example (GitHub PR) See merge request espressif/esp-idf!22746
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