Ensure kenwood rigs stay in split mode after FR0; command

https://github.com/Hamlib/Hamlib/issues/746
pull/750/head
Mike Black W9MDB 2021-07-19 23:49:48 -05:00
rodzic a092f1f630
commit a8200886bf
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -910,6 +910,7 @@ int kenwood_open(RIG *rig)
/* compare id string */
for (i = 0; kenwood_id_string_list[i].model != RIG_MODEL_NONE; i++)
{
//rig_debug(RIG_DEBUG_ERR, "%s: comparing '%s'=='%s'\n", __func__, kenwood_id_string_list[i].id, idptr);
if (strcmp(kenwood_id_string_list[i].id, idptr) != 0)
{
continue;
@ -1122,6 +1123,11 @@ int kenwood_set_vfo(RIG *rig, vfo_t vfo)
{
RETURNFUNC(RIG_OK);
}
// some rigs need split turned on after VFOA is set
if (vfo == RIG_VFO_A && priv->split == RIG_SPLIT_ON)
{
rig_set_split_vfo(rig, RIG_VFO_CURR, 1, priv->tx_vfo);
}
/* set TX VFO */
cmdbuf[1] = 'T';

Wyświetl plik

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