From 0a1cd0743e783674ef6877d53b65e4d54f7ce565 Mon Sep 17 00:00:00 2001 From: rkcf Date: Tue, 21 Feb 2023 14:02:18 -0600 Subject: [PATCH] Fix: max buffer stored too long Refs: #4 --- src/main/esp32_eurorack_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/esp32_eurorack_generic.c b/src/main/esp32_eurorack_generic.c index af3d868..80bbb5a 100644 --- a/src/main/esp32_eurorack_generic.c +++ b/src/main/esp32_eurorack_generic.c @@ -104,7 +104,7 @@ static void adc_cont_init(void) /* Create continuous mode driver handle */ adc_continuous_handle_cfg_t adc_handle_config = { - .max_store_buf_size = 1024, + .max_store_buf_size = ADC_READ_LEN, .conv_frame_size = ADC_READ_LEN }; ESP_ERROR_CHECK(adc_continuous_new_handle(&adc_handle_config, &adc_handle));