mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
fix: adjust delay
This commit is contained in:
parent
47fec0b024
commit
f6e9c6f434
4
main.c
4
main.c
|
|
@ -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]);
|
||||||
|
|
|
||||||
2
si5351.c
2
si5351.c
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue