When rig_set_split_freq_mode is called and RIG_VFO_CURR is requested use default tx_vfo

https://github.com/Hamlib/Hamlib/issues/288
pull/290/head
Michael Black W9MDB 2020-06-09 12:16:45 -05:00
rodzic 718fcdf0c1
commit ee8dde16ea
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -4521,6 +4521,11 @@ int icom_set_split_freq_mode(RIG *rig, vfo_t vfo, freq_t tx_freq,
"%s: after get_split_vfos rx_vfo=%s tx_vfo=%s\n", __func__,
rig_strvfo(priv->rx_vfo), rig_strvfo(priv->tx_vfo));
// if not asking for RIG_VFO_CURR we'll use the requested VFO in the function call
if (!priv->split_on && vfo != RIG_VFO_CURR) {
tx_vfo = vfo;
rig_debug(RIG_DEBUG_TRACE, "%s: split not on so using requested vfo=%s\n", __func__, rig_strvfo(tx_vfo));
}
if (RIG_OK != (retval = icom_set_vfo(rig, tx_vfo)))
{

Wyświetl plik

@ -31,7 +31,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20200608"
#define BACKEND_VER "20200609"
/*
* defines used by comp_cal_str in rig.c