In rig_set_split_mode and rig mode is not targetable we disable split, set mode, and re-enable to avoid vfo flashing.

This disable is moved behind the targetable mode now as it should not be required in that case
https://github.com/Hamlib/Hamlib/issues/863
pull/875/head
Mike Black W9MDB 2021-11-09 23:52:21 -06:00
rodzic 61141126c1
commit e64a128f3a
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -4272,7 +4272,6 @@ int HAMLIB_API rig_set_split_mode(RIG *rig,
RETURNFUNC(retcode);
}
rig_set_split_vfo(rig,RIG_VFO_CURR, RIG_SPLIT_OFF, RIG_VFO_CURR);
/* Assisted mode */
curr_vfo = rig->state.current_vfo;
@ -4294,7 +4293,9 @@ int HAMLIB_API rig_set_split_mode(RIG *rig,
RETURNFUNC(retcode);
}
// some rigs exhibit undesirable flashing when swapping vfos in split
// so we turn it off, do our thing, and turn split back on
rig_set_split_vfo(rig,RIG_VFO_CURR, RIG_SPLIT_OFF, RIG_VFO_CURR);
if (caps->set_vfo)
{
TRACE;