ADC 측정 전 버퍼 클리어

This commit is contained in:
2026-04-16 20:32:49 +09:00
parent 32b6fb800d
commit e04e79ac31

View File

@@ -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;