From 4627e7c4fb07267dd15413ce5935505380b11cf1 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Tue, 19 Jul 2022 13:25:28 -0500 Subject: [PATCH] Update kenwood rig->state.tx_vfo in kenwood_get_split_vfo_if https://github.com/Hamlib/Hamlib/issues/1083 --- rigs/kenwood/kenwood.c | 10 +++++----- rigs/kenwood/kenwood.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index ac4fae565..711bd99b0 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -1577,13 +1577,13 @@ int kenwood_get_split_vfo_if(RIG *rig, vfo_t rxvfo, split_t *split, { *split = RIG_SPLIT_ON; *txvfo = RIG_VFO_SUB; - priv->tx_vfo = *txvfo; + priv->tx_vfo = rig->state.tx_vfo = *txvfo; } else { *split = RIG_SPLIT_OFF; *txvfo = RIG_VFO_MAIN; - priv->tx_vfo = *txvfo; + priv->tx_vfo = rig->state.tx_vfo = *txvfo; } } @@ -1626,19 +1626,19 @@ int kenwood_get_split_vfo_if(RIG *rig, vfo_t rxvfo, split_t *split, if (rig->state.rx_vfo == RIG_VFO_A) { HAMLIB_TRACE; - *txvfo = priv->tx_vfo = (*split && !transmitting) ? RIG_VFO_B : RIG_VFO_A; + *txvfo = rig->state.tx_vfo = priv->tx_vfo = (*split && !transmitting) ? RIG_VFO_B : RIG_VFO_A; } else if (rig->state.rx_vfo == RIG_VFO_B) { HAMLIB_TRACE; - *txvfo = priv->tx_vfo = (*split && !transmitting) ? RIG_VFO_B : RIG_VFO_A; + *txvfo = rig->state.tx_vfo = priv->tx_vfo = (*split && !transmitting) ? RIG_VFO_B : RIG_VFO_A; } else { rig_debug(RIG_DEBUG_WARN, "%s(%d): unknown rxVFO=%s\n", __func__, __LINE__, rig_strvfo(rig->state.rx_vfo)); *txvfo = RIG_VFO_A; // pick a default - rig->state.rx_vfo = RIG_VFO_A; + rig->state.rx_vfo = priv->tx_vfo = RIG_VFO_A; } break; diff --git a/rigs/kenwood/kenwood.h b/rigs/kenwood/kenwood.h index 0a4b09a8e..85b685006 100644 --- a/rigs/kenwood/kenwood.h +++ b/rigs/kenwood/kenwood.h @@ -28,7 +28,7 @@ #include "token.h" #include "misc.h" -#define BACKEND_VER "20220705" +#define BACKEND_VER "20220719" #define EOM_KEN ';' #define EOM_TH '\r'