kopia lustrzana https://github.com/Hamlib/Hamlib
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/299pull/345/head
rodzic
c1b9f254ab
commit
7cdaa0efd1
|
@ -1128,23 +1128,16 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
||||||
return retval;
|
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)
|
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_debug(RIG_DEBUG_TRACE, "%s: VFO_RX requested, new vfo=%s\n", __func__,
|
||||||
rig_strvfo(vfo));
|
rig_strvfo(vfo));
|
||||||
}
|
}
|
||||||
else if (vfo == RIG_VFO_TX)
|
else if (vfo == RIG_VFO_TX)
|
||||||
{
|
{
|
||||||
if (rig->state.vfo_list == VFO_HAS_MAIN_SUB_A_B_ONLY)
|
vfo = vfo_fixup(rig, vfo);
|
||||||
{
|
|
||||||
vfo = RIG_VFO_A;
|
|
||||||
|
|
||||||
if (priv->split_on) { vfo = RIG_VFO_B; }
|
|
||||||
else if (rig->state.cache.satmode) { vfo = RIG_VFO_SUB; }
|
|
||||||
}
|
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_TRACE, "%s: VFO_TX requested, new vfo=%s\n", __func__,
|
rig_debug(RIG_DEBUG_TRACE, "%s: VFO_TX requested, new vfo=%s\n", __func__,
|
||||||
rig_strvfo(vfo));
|
rig_strvfo(vfo));
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BACKEND_VER "20200611"
|
#define BACKEND_VER "20200612"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* defines used by comp_cal_str in rig.c
|
* defines used by comp_cal_str in rig.c
|
||||||
|
|
Ładowanie…
Reference in New Issue