Skip to content

Commit

Permalink
For all kenwoods query split and don't change if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Jul 17, 2021
1 parent 4e4c93f commit e966508
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions rigs/kenwood/kenwood.c
Original file line number Diff line number Diff line change
Expand Up @@ -1273,15 +1273,14 @@ int kenwood_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t txvfo)

priv->tx_vfo = txvfo;

if (RIG_IS_K2 || RIG_IS_K3)
{
/* do not attempt redundant split change commands on Elecraft as
they impact output power when transmitting */
if (RIG_OK == (retval = kenwood_safe_transaction(rig, "FT", cmdbuf,
sizeof(cmdbuf), 3)))
{
if (cmdbuf[2] == vfo_function) { RETURNFUNC(RIG_OK); }
}
/* do not attempt redundant split change commands on Elecraft as
they impact output power when transmitting
and all other rigs don't need to set it if it's already set correctly
*/
if (RIG_OK == (retval = kenwood_safe_transaction(rig, "FT", cmdbuf,
sizeof(cmdbuf), 3)))
{
if (cmdbuf[2] == vfo_function) { RETURNFUNC(RIG_OK); }
}

/* set TX VFO */
Expand Down
2 changes: 1 addition & 1 deletion rigs/kenwood/kenwood.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "token.h"
#include "misc.h"

#define BACKEND_VER "20210615"
#define BACKEND_VER "20210717"

#define EOM_KEN ';'
#define EOM_TH '\r'
Expand Down

0 comments on commit e966508

Please sign in to comment.