mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-01-13 20:10:22 +01:00
Increasing the time when in harmonic mode
This commit is contained in:
parent
acd944d5fa
commit
73b6cddedc
12
main.c
12
main.c
|
|
@ -251,27 +251,27 @@ int set_frequency(int freq)
|
|||
|
||||
if (freq > 1400000000 && frequency <= 1400000000) {
|
||||
tlv320aic3204_set_gain(95, 95);
|
||||
delay += 10;
|
||||
delay += 11;
|
||||
} else
|
||||
if (freq > 1200000000 && frequency <= 1200000000) {
|
||||
tlv320aic3204_set_gain(85, 85);
|
||||
delay += 10;
|
||||
delay += 11;
|
||||
} else
|
||||
if (freq > 900000000 && frequency <= 900000000) {
|
||||
tlv320aic3204_set_gain(75, 75);
|
||||
delay += 10;
|
||||
delay += 11;
|
||||
} else
|
||||
if (freq > 600000000 && frequency <= 600000000) {
|
||||
tlv320aic3204_set_gain(50, 50);
|
||||
delay += 10;
|
||||
delay += 11;
|
||||
} else
|
||||
if (freq > FREQ_HARMONICS && frequency <= FREQ_HARMONICS) {
|
||||
tlv320aic3204_set_gain(40, 40);
|
||||
delay += 10;
|
||||
delay += 11;
|
||||
} else
|
||||
if (freq <= FREQ_HARMONICS && frequency > FREQ_HARMONICS) {
|
||||
tlv320aic3204_set_gain(0, 0);
|
||||
delay += 10;
|
||||
delay += 11;
|
||||
}
|
||||
|
||||
int8_t ds = drive_strength;
|
||||
|
|
|
|||
Loading…
Reference in a new issue