Fix set_vfo for non TARGETABLE_FREQ rigs like the FT100

Was not setting VFOB when requested
https://github.com/Hamlib/Hamlib/issues/812
pull/816/head
Mike Black W9MDB 2021-09-28 23:03:56 -05:00
rodzic 7c42d6ddb0
commit da87903e3c
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -1924,6 +1924,15 @@ int HAMLIB_API rig_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
RETURNFUNC(-RIG_ENAVAIL);
}
retcode = rig_set_vfo(rig, vfo);
if (retcode != RIG_OK)
{
rig_debug(RIG_DEBUG_ERR, "%s: set_vfo failed: %s\n", __func__,
rig_strerror(retcode));
}
if (twiddling(rig))
{
rig_debug(RIG_DEBUG_TRACE, "%s: Ignoring set_freq due to VFO twiddling\n",