ADC 측정 전 버퍼 클리어
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user