kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'bugfix/fix_adc_continuous_do_not_rst_apb_clk_v4.4' into 'release/v4.4'
fix(adc): fix adc continuous get less results beacuse do not reset apb clk (v4.4) See merge request espressif/esp-idf!27612pull/13426/head
commit
8430331e6b
|
@ -360,6 +360,8 @@ static IRAM_ATTR bool s_adc_dma_intr(adc_digi_context_t *adc_digi_ctx)
|
|||
|
||||
esp_err_t adc_digi_start(void)
|
||||
{
|
||||
//reset ADC digital part to reset ADC sampling EOF counter
|
||||
periph_module_reset(PERIPH_SARADC_MODULE);
|
||||
if (s_adc_digi_ctx) {
|
||||
if (s_adc_digi_ctx->driver_start_flag != 0) {
|
||||
ESP_LOGE(ADC_TAG, "The driver is already started");
|
||||
|
|
Ładowanie…
Reference in New Issue