Increasing the time when in harmonic mode

This commit is contained in:
erikkaashoek 2019-09-21 13:28:49 +02:00
parent acd944d5fa
commit 73b6cddedc

12
main.c
View file

@ -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;