fix: adjust delay

This commit is contained in:
TT 2019-10-21 23:00:24 +09:00
parent 47fec0b024
commit f6e9c6f434
2 changed files with 3 additions and 3 deletions

4
main.c
View file

@ -652,7 +652,7 @@ ensure_edit_config(void)
cal_status = 0; cal_status = 0;
} }
#define DELAY_CHANNEL_CHANGE 1 #define DELAY_CHANNEL_CHANGE 3
// main loop for measurement // main loop for measurement
bool sweep(bool break_on_operation) bool sweep(bool break_on_operation)
@ -671,7 +671,7 @@ bool sweep(bool break_on_operation)
(*sample_func)(measured[0][i]); (*sample_func)(measured[0][i]);
tlv320aic3204_select(1); // CH1:TRANSMISSION tlv320aic3204_select(1); // CH1:TRANSMISSION
wait_dsp(delay + DELAY_CHANNEL_CHANGE); wait_dsp(DELAY_CHANNEL_CHANGE);
/* calculate transmission coeficient */ /* calculate transmission coeficient */
(*sample_func)(measured[1][i]); (*sample_func)(measured[1][i]);

View file

@ -296,7 +296,7 @@ si5351_set_frequency(int channel, int freq, uint8_t drive_strength)
int current_band = -1; int current_band = -1;
#define DELAY_NORMAL 2 #define DELAY_NORMAL 3
#define DELAY_BANDCHANGE 1 #define DELAY_BANDCHANGE 1
#define DELAY_LOWBAND 1 #define DELAY_LOWBAND 1