From 970dff70a3538fbf25500e3e4be4a3784a60bb01 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 29 Aug 2021 08:29:26 -0500 Subject: [PATCH] Make kenwood set_split_vfo behave the same as set_vfo in both directions https://github.com/Hamlib/Hamlib/issues/746 --- rigs/kenwood/kenwood.c | 14 +++++++++++++- rigs/kenwood/kenwood.h | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 0333b2c7a..a03a8ea61 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -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) diff --git a/rigs/kenwood/kenwood.h b/rigs/kenwood/kenwood.h index 7c1190fc3..e0973afc3 100644 --- a/rigs/kenwood/kenwood.h +++ b/rigs/kenwood/kenwood.h @@ -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'