mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 20:54:24 +00:00
fix(adc): workaround to fix adc continuous get less results on c3
This commit is contained in:
@@ -419,6 +419,11 @@ esp_err_t adc_continuous_stop(adc_continuous_handle_t handle)
|
||||
//stop ADC
|
||||
adc_hal_digi_stop(&handle->hal);
|
||||
|
||||
#if ADC_LL_WORKAROUND_CLEAR_EOF_COUNTER
|
||||
periph_module_reset(PERIPH_SARADC_MODULE);
|
||||
adc_hal_digi_clr_eof();
|
||||
#endif
|
||||
|
||||
adc_hal_digi_deinit(&handle->hal);
|
||||
|
||||
if (handle->use_adc2) {
|
||||
|
Reference in New Issue
Block a user