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
pull/649/head
Mike Black W9MDB 2021-04-01 08:02:49 -05:00
rodzic ac5a94a6f1
commit 8e1fae4ea4
1 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

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