From 638f39ff40fe550de5126cbfa3faf3600dda4fed Mon Sep 17 00:00:00 2001 From: Armando Date: Wed, 20 Jul 2022 16:35:55 +0800 Subject: [PATCH] adc: fix legacy oneshot driver clock gating issue on c3 and c2 --- components/driver/deprecated/adc_legacy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/driver/deprecated/adc_legacy.c b/components/driver/deprecated/adc_legacy.c index 8ba12c01a1..5620b56a6d 100644 --- a/components/driver/deprecated/adc_legacy.c +++ b/components/driver/deprecated/adc_legacy.c @@ -822,6 +822,7 @@ esp_err_t adc2_get_raw(adc2_channel_t channel, adc_bits_width_t width_bit, int * periph_module_enable(PERIPH_SARADC_MODULE); adc_power_acquire(); + adc_ll_digi_clk_sel(0); adc_arbiter_t config = ADC_ARBITER_CONFIG_DEFAULT(); adc_hal_arbiter_config(&config);