We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae3014d commit 016ded5Copy full SHA for 016ded5
src/AudioAnalog/AnalogDriverESP32V1.h
@@ -522,8 +522,9 @@ class AnalogDriverESP32V1 : public AnalogDriverBase {
522
adc_continuous_handle_cfg_t adc_config;
523
adc_config.max_store_buf_size = (uint32_t)conv_frame_size * 2;
524
adc_config.conv_frame_size = (uint32_t) conv_frame_size;
525
+#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0)
526
adc_config.flags.flush_pool = true;
-
527
+#endif
528
err = adc_continuous_new_handle(&adc_config, &adc_handle);
529
if (err != ESP_OK) {
530
LOGE("adc_continuous_new_handle failed with error: %d", err);
0 commit comments