From e04e79ac31c3523809cc5b58a66979de6e8a3cb4 Mon Sep 17 00:00:00 2001 From: jhchun Date: Thu, 16 Apr 2026 20:32:49 +0900 Subject: [PATCH] =?UTF-8?q?ADC=20=EC=B8=A1=EC=A0=95=20=EC=A0=84=20?= =?UTF-8?q?=EB=B2=84=ED=8D=BC=20=ED=81=B4=EB=A6=AC=EC=96=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../measurement/adc121s051/dr_adc121s051.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/project/ble_peripheral/ble_app_bladder_patch/measurement/adc121s051/dr_adc121s051.c b/project/ble_peripheral/ble_app_bladder_patch/measurement/adc121s051/dr_adc121s051.c index 83898f9..764d0d4 100644 --- a/project/ble_peripheral/ble_app_bladder_patch/measurement/adc121s051/dr_adc121s051.c +++ b/project/ble_peripheral/ble_app_bladder_patch/measurement/adc121s051/dr_adc121s051.c @@ -1353,6 +1353,9 @@ dr_adc_err_t maa_async_start(uint8_t freq_option, uint16_t delay_us, uint16_t nu return DR_ADC_ERR_INVALID_PARAM; } + /* Clear BLE buffer to prevent stale data from previous measurement */ + memset(ble_buffer, 0, BLE_MTU_SIZE); + /* Initialize context */ g_maa_ctx.freq_option = freq_option; g_maa_ctx.delay_us = delay_us;