Change icom.c VFO_TX VFO_RX adjustment to use vfo_fixup function

vfo_fixup should be able to handle all rigs variations
https://github.com/Hamlib/Hamlib/issues/299
pull/345/head
Michael Black W9MDB 2020-06-12 07:57:13 -05:00
rodzic c1b9f254ab
commit 7cdaa0efd1
2 zmienionych plików z 4 dodań i 11 usunięć

Wyświetl plik

@ -1128,23 +1128,16 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
return retval;
}
// Pick the appropriate VFO when VFO_RX is requested
// Pick the appropriate VFO when VFO_RX or VFO_TX is requested
if (vfo == RIG_VFO_RX)
{
vfo = (rig->state.vfo_list & RIG_VFO_B) ? RIG_VFO_A : RIG_VFO_MAIN;
vfo = vfo_fixup(rig, vfo);
rig_debug(RIG_DEBUG_TRACE, "%s: VFO_RX requested, new vfo=%s\n", __func__,
rig_strvfo(vfo));
}
else if (vfo == RIG_VFO_TX)
{
if (rig->state.vfo_list == VFO_HAS_MAIN_SUB_A_B_ONLY)
{
vfo = RIG_VFO_A;
if (priv->split_on) { vfo = RIG_VFO_B; }
else if (rig->state.cache.satmode) { vfo = RIG_VFO_SUB; }
}
vfo = vfo_fixup(rig, vfo);
rig_debug(RIG_DEBUG_TRACE, "%s: VFO_TX requested, new vfo=%s\n", __func__,
rig_strvfo(vfo));
}

Wyświetl plik

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