Make kenwood set_split_vfo behave the same as set_vfo in both directions

https://github.com/Hamlib/Hamlib/issues/746
pull/779/head
Mike Black W9MDB 2021-08-29 08:29:26 -05:00
rodzic 36387c8af7
commit f6b57e147d
2 zmienionych plików z 14 dodań i 2 usunięć

Wyświetl plik

@ -1119,7 +1119,7 @@ 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
// some rigs turn split off with FR command
if (priv->split)
{
if (vfo_function == '0')
@ -1273,6 +1273,18 @@ int kenwood_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t txvfo)
// So we'll turn it back on just in case
if (split && vfo_function == '0') { strcat(cmdbuf, ";FT1"); }
if (priv->split)
{
if (vfo_function == '0')
{
strcat(cmdbuf, ";FT1");
}
else
{
strcat(cmdbuf, ";FT0");
}
}
retval = kenwood_transaction(rig, cmdbuf, NULL, 0);
if (retval != RIG_OK)

Wyświetl plik

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