dummy burst ADC capture 추가

This commit is contained in:
2026-07-08 09:08:54 +09:00
parent 38ec75ad78
commit 7cba63c143
+7
View File
@@ -223,6 +223,13 @@ int piezo_measure_sweep(void)
k_busy_wait(PIEZO_AVG_INTER_BURST_GAP_US);
piezo_burst_sw((uint8_t)cfg->cycles);
k_busy_wait(capture_delay_us);
err = echo_adc_capture(echo_capture, cfg->samples);
if (err)
{
DBG_PRINTF("[ECHO] dummy capture fail ch=%d dummy=%d err=%d\r\n", ch, dummy, err);
return ECHO_STATUS_CAPTURE;
}
}
// 마지막 dummy capture와 첫 real capture 사이에도 같은 회복 시간