In rig.c set rxvfo and txvfo to current if currvfo is requested

https://github.com/Hamlib/Hamlib/issues/838
pull/875/head
Mike Black W9MDB 2021-11-03 15:00:38 -05:00
rodzic 057788b300
commit e7530643a0
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -4697,6 +4697,15 @@ int HAMLIB_API rig_set_split_vfo(RIG *rig,
{
rx_vfo = vfo_fixup(rig, rx_vfo, split);
tx_vfo = vfo_fixup(rig, tx_vfo, split);
if (rx_vfo == RIG_VFO_CURR)
{
rx_vfo = rig->state.current_vfo;
}
if (tx_vfo == RIG_VFO_CURR)
{
tx_vfo = rig->state.tx_vfo;
}
rig_debug(RIG_DEBUG_VERBOSE, "%s: final rxvfo=%s, txvfo=%s\n", __func__, rig_strvfo(rx_vfo), rig_strvfo(tx_vfo));
}
// set rig to the the requested RX VFO