Change vfo_fixup to default to VFO_A when not in split mode

Was staying on VFO_B when VFO_B was requested
https://github.com/Hamlib/Hamlib/issues/741
pull/750/head
Mike Black W9MDB 2021-07-15 15:32:32 -05:00
rodzic 756f8052fc
commit a6d91eb8a8
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -1762,9 +1762,8 @@ vfo_t HAMLIB_API vfo_fixup(RIG *rig, vfo_t vfo)
int satmode = rig->state.cache.satmode;
if (vfo == RIG_VFO_TX) { vfo = RIG_VFO_A; }
if (split) { vfo = RIG_VFO_B; }
else { vfo = RIG_VFO_A; }
if (VFO_HAS_MAIN_SUB_ONLY && !split && !satmode && vfo != RIG_VFO_B) { vfo = RIG_VFO_MAIN; }