Fix IC_9700 type rigs when client asks for Sub VFO but split or satmode

is not in use
https://github.com/Hamlib/Hamlib/issues/250
pull/281/head
Michael Black W9MDB 2020-05-16 21:34:26 +02:00
rodzic dc389d7908
commit 1af1650716
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -7103,6 +7103,7 @@ static int set_vfo_curr(RIG *rig, vfo_t vfo, vfo_t curr_vfo)
// only need to set vfo if it's changed
else if (priv->curr_vfo != vfo)
{
if (!(VFO_HAS_MAIN_SUB_A_B_ONLY && !priv->split_on && !priv->satmode && vfo == RIG_VFO_SUB && priv->curr_vfo == RIG_VFO_B)) {
rig_debug(RIG_DEBUG_TRACE, "%s: setting new vfo=%s\n", __func__,
rig_strvfo(vfo));
retval = rig_set_vfo(rig, vfo);
@ -7113,6 +7114,7 @@ static int set_vfo_curr(RIG *rig, vfo_t vfo, vfo_t curr_vfo)
}
priv->curr_vfo = vfo;
}
}
rig_debug(RIG_DEBUG_TRACE, "%s: curr_vfo now=%s\n", __func__,