From 73b6cddedcb52e96856aeb74ca0e7833392cc790 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Sat, 21 Sep 2019 13:28:49 +0200 Subject: [PATCH] Increasing the time when in harmonic mode --- main.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.c b/main.c index 6713b82..2abda83 100644 --- a/main.c +++ b/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;