dummy burst ADC capture 추가
This commit is contained in:
@@ -223,6 +223,13 @@ int piezo_measure_sweep(void)
|
|||||||
k_busy_wait(PIEZO_AVG_INTER_BURST_GAP_US);
|
k_busy_wait(PIEZO_AVG_INTER_BURST_GAP_US);
|
||||||
piezo_burst_sw((uint8_t)cfg->cycles);
|
piezo_burst_sw((uint8_t)cfg->cycles);
|
||||||
k_busy_wait(capture_delay_us);
|
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 사이에도 같은 회복 시간
|
// 마지막 dummy capture와 첫 real capture 사이에도 같은 회복 시간
|
||||||
|
|||||||
Reference in New Issue
Block a user