Fix rigs so that VFOB/A split works as well as VFOA/B

https://github.com/Hamlib/Hamlib/issues/745
pull/822/head
Mike Black W9MDB 2021-10-08 23:55:48 -05:00
rodzic fecc7d42aa
commit 2319d17389
3 zmienionych plików z 2 dodań i 9 usunięć

Wyświetl plik

@ -962,13 +962,6 @@ int kenwood_open(RIG *rig)
rig->state.rigport.retry = retry_save;
// Default to 1st VFO and split off -- but only 1 time
if (rig->caps->set_vfo && priv->opened == 0)
{
rig_set_vfo(rig, vfo_fixup(rig, RIG_VFO_A, 0));
priv->opened = 1;
}
RETURNFUNC(RIG_OK);
}

Wyświetl plik

@ -28,7 +28,7 @@
#include "token.h"
#include "misc.h"
#define BACKEND_VER "20210911"
#define BACKEND_VER "20211008"
#define EOM_KEN ';'
#define EOM_TH '\r'

Wyświetl plik

@ -1768,7 +1768,7 @@ vfo_t HAMLIB_API vfo_fixup(RIG *rig, vfo_t vfo, split_t split)
int satmode = rig->state.cache.satmode;
if (split && vfo == RIG_VFO_TX) { vfo = RIG_VFO_B; }
if (split && vfo == RIG_VFO_TX) { vfo = rig->state.tx_vfo; }
if (VFO_HAS_MAIN_SUB_ONLY && !split && !satmode && vfo != RIG_VFO_B) { vfo = RIG_VFO_MAIN; }