타이밍 최적화
- 온도 측정, Piezo 측정 사이 딜레이 줄이기 - Piezo 한 채널에서 평균화를 위한 반복 측정 사이 딜레이 줄이기 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -828,10 +828,10 @@ dr_adc_err_t dr_adc_capture_channel_only(uint8_t freq_option, uint16_t delay_us,
|
||||
/* Capture with averaging */
|
||||
for (uint16_t avg_iter = 0; avg_iter < averaging; avg_iter++) {
|
||||
if (avg_iter > 0) {
|
||||
nrf_delay_us(500); /* Echo decay time */
|
||||
//nrf_delay_us(500); /* Echo decay time */
|
||||
}
|
||||
|
||||
dr_piezo_select_channel(piezo_ch);
|
||||
//dr_piezo_select_channel(piezo_ch);
|
||||
|
||||
/* Execute piezo burst */
|
||||
switch (freq_option) {
|
||||
|
||||
Reference in New Issue
Block a user