In rig_set_split_mode force vfo to vfo_a when tx_vfo==vfo_b

https://github.com/Hamlib/Hamlib/issues/1046
pull/1068/head
Mike Black W9MDB 2022-06-01 16:47:39 -05:00
rodzic 763836881f
commit 860e280f85
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -4165,6 +4165,7 @@ int HAMLIB_API rig_set_split_mode(RIG *rig,
// some rigs exhibit undesirable flashing when swapping vfos in split
// so we turn it off, do our thing, and turn split back on
rx_vfo = vfo;
if (tx_vfo == RIG_VFO_B) rx_vfo = RIG_VFO_A;
if (vfo == RIG_VFO_CURR && tx_vfo == RIG_VFO_B) { rx_vfo = RIG_VFO_A; }
else if (vfo == RIG_VFO_CURR && tx_vfo == RIG_VFO_A) { rx_vfo = RIG_VFO_B; }