Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_adc_reset_issue_on_legacy_v5.2' into 'releas…
Browse files Browse the repository at this point in the history
…e/v5.2'

fix(adc): fix adc continuous get less results beacuse do not reset apb clk(legacy) (v5.2)

See merge request espressif/esp-idf!28332
  • Loading branch information
suda-morris committed Feb 20, 2024
2 parents e094428 + 7ab43c0 commit 1156370
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/driver/deprecated/adc_dma_legacy.c
Expand Up @@ -396,6 +396,8 @@ esp_err_t adc_digi_start(void)
ESP_LOGE(ADC_TAG, "The driver is already started");
return ESP_ERR_INVALID_STATE;
}
//reset ADC digital part to reset ADC sampling EOF counter
periph_module_reset(PERIPH_SARADC_MODULE);
sar_periph_ctrl_adc_continuous_power_acquire();
//reset flags
s_adc_digi_ctx->ringbuf_overflow_flag = 0;
Expand Down

0 comments on commit 1156370

Please sign in to comment.