Change rig_get_freq call to use VFO_CURR instead of vfo to avoid looping

https://github.com/Hamlib/Hamlib/issues/625
pull/649/head
Michael Black W9MDB 2021-03-23 11:03:57 -05:00
rodzic cb9d2e064c
commit 86ca6de85f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2491,7 +2491,7 @@ int HAMLIB_API rig_set_vfo(RIG *rig, vfo_t vfo)
// we only get the freq if we set the vfo OK
if (retcode == RIG_OK && caps->get_freq)
{
retcode = caps->get_freq(rig, vfo, &curr_freq);
retcode = caps->get_freq(rig, RIG_VFO_CURR, &curr_freq);
rig_debug(RIG_DEBUG_TRACE, "%s: retcode from rig_get_freq = %.10000s\n",
__func__,
rigerror(retcode));