[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 2c8092d21b7e2e39baa90
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-08-29 03:37:06
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via 2c8092d21b7e2e39baa9060394404b53c0285897 (commit) from 004efafda7de9cea82aaf694f5224f96977c828a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 2c8092d21b7e2e39baa9060394404b53c0285897 Author: Mike Black W9MDB <mdb...@ya...> Date: Sat Aug 28 22:35:16 2021 -0500 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 diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 589c2150..0333b2c7 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -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'; diff --git a/rigs/kenwood/kenwood.h b/rigs/kenwood/kenwood.h index a5c0242a..7c1190fc 100644 --- a/rigs/kenwood/kenwood.h +++ b/rigs/kenwood/kenwood.h @@ -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' ----------------------------------------------------------------------- Summary of changes: rigs/kenwood/kenwood.c | 14 ++++++++++++++ rigs/kenwood/kenwood.h | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |