kopia lustrzana https://github.com/Hamlib/Hamlib
rodzic
111627533f
commit
4078fa9248
|
@ -195,7 +195,7 @@ int id5100_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
|
|||
|
||||
if (vfo == RIG_VFO_CURR || vfo == RIG_VFO_A || vfo == RIG_VFO_B)
|
||||
{
|
||||
return icom_set_vfo(rig, vfo);
|
||||
return id5100_set_vfo(rig, vfo);
|
||||
}
|
||||
|
||||
if (vfo == RIG_VFO_MAIN)
|
||||
|
|
20
src/cache.c
20
src/cache.c
|
@ -41,6 +41,16 @@ int rig_set_cache_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
|
|||
// if CURR then update this before we figure out the real VFO
|
||||
vfo = rig->state.current_vfo;
|
||||
}
|
||||
else if (vfo == RIG_VFO_TX)
|
||||
{
|
||||
vfo = rig->state.tx_vfo;
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: TX VFO = %s\n", __func__, rig_strvfo(vfo));
|
||||
}
|
||||
else if (vfo == RIG_VFO_RX)
|
||||
{
|
||||
vfo = rig->state.rx_vfo;
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: RX VFO = %s\n", __func__, rig_strvfo(vfo));
|
||||
}
|
||||
|
||||
// pick a sane default
|
||||
if (vfo == RIG_VFO_NONE || vfo == RIG_VFO_CURR) { vfo = RIG_VFO_A; }
|
||||
|
@ -262,6 +272,16 @@ int rig_get_cache(RIG *rig, vfo_t vfo, freq_t *freq, int *cache_ms_freq,
|
|||
{
|
||||
vfo = rig->state.current_vfo;
|
||||
}
|
||||
else if (vfo == RIG_VFO_TX)
|
||||
{
|
||||
vfo = rig->state.tx_vfo;
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: TX VFO = %s\n", __func__, rig_strvfo(vfo));
|
||||
}
|
||||
else if (vfo == RIG_VFO_RX)
|
||||
{
|
||||
vfo = rig->state.rx_vfo;
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: RX VFO = %s\n", __func__, rig_strvfo(vfo));
|
||||
}
|
||||
else if (vfo == RIG_VFO_OTHER)
|
||||
{
|
||||
switch (rig->state.current_vfo)
|
||||
|
|
Ładowanie…
Reference in New Issue