[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. f6b57e147daa2cb1c397d
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-08-29 13:30:40
|
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 f6b57e147daa2cb1c397d978a061d419dce64165 (commit) from 36387c8af7f8250382b3d98ca3ca212a5b437bac (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 f6b57e147daa2cb1c397d978a061d419dce64165 Author: Mike Black W9MDB <mdb...@ya...> Date: Sun Aug 29 08:29:26 2021 -0500 Make kenwood set_split_vfo behave the same as set_vfo in both directions https://github.com/Hamlib/Hamlib/issues/746 diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 0333b2c7..a03a8ea6 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 7c1190fc..e0973afc 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' ----------------------------------------------------------------------- Summary of changes: rigs/kenwood/kenwood.c | 14 +++++++++++++- rigs/kenwood/kenwood.h | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |