From 8e1fae4ea44fd47f585262f34abd82f9eba48c9e Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Thu, 1 Apr 2021 08:02:49 -0500 Subject: [PATCH] Fix rig_set_split_freq in rig.c -- was not setting freq at all for non-targetable rigs https://github.com/Hamlib/Hamlib/issues/640 --- src/rig.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/rig.c b/src/rig.c index f8ab6d0e6..14ab3cfdd 100644 --- a/src/rig.c +++ b/src/rig.c @@ -3605,22 +3605,19 @@ int HAMLIB_API rig_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq) do { -#if 0 // this verification seems to be causing bad behavior on some reigs - + // doing get_freq seems to break on some rigs that can't read freq immediately after set if (caps->set_split_freq) { retcode = caps->set_split_freq(rig, vfo, tx_freq); - rig_get_freq(rig, vfo, &tfreq); + //rig_get_freq(rig, vfo, &tfreq); } else { retcode = rig_set_freq(rig, RIG_VFO_CURR, tx_freq); - rig_get_freq(rig, vfo, &tfreq); + //rig_get_freq(rig, vfo, &tfreq); } -#else tfreq = tx_freq; -#endif } while (tfreq != tx_freq && retry-- > 0 && retcode == RIG_OK);