For kenwood rigs reset split after set_vfo FR command if needed

Side effect of this change is support of reverse split by changing to VFOB
https://github.com/Hamlib/Hamlib/issues/746
pull/788/head
Mike Black W9MDB 2021-08-28 22:35:16 -05:00 zatwierdzone przez Wouter van Gulik
rodzic 8092588d97
commit 7b61057202
2 zmienionych plików z 15 dodań i 1 usunięć

Wyświetl plik

@ -1118,6 +1118,20 @@ int kenwood_set_vfo(RIG *rig, vfo_t vfo)
snprintf(cmdbuf, sizeof(cmdbuf), "FR%c", vfo_function);
// as we change VFO we will change split to the other VFO
// some rigs turn split off with FR command
if (priv->split)
{
if (vfo_function == '0')
{
strcat(cmdbuf, ";FT1");
}
else
{
strcat(cmdbuf, ";FT0");
}
}
if (RIG_IS_TS50 || RIG_IS_TS940)
{
cmdbuf[1] = 'N';

Wyświetl plik

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