Skip to content

Commit

Permalink
Change kenwood to only set VFOA default on 1st rig_open call
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Sep 13, 2021
1 parent ad24185 commit 0f2a92b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions rigs/kenwood/kenwood.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,10 +962,11 @@ int kenwood_open(RIG *rig)

rig->state.rigport.retry = retry_save;

// Default to 1st VFO and split off
if (rig->caps->set_vfo)
// Default to 1st VFO and split off -- but only 1 time
if (rig->caps->set_vfo && priv->opened == 0)
{
rig_set_vfo(rig, vfo_fixup(rig, RIG_VFO_A, 0));
priv->opened = 1;
}

RETURNFUNC(RIG_OK);
Expand Down
3 changes: 2 additions & 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 "20210829"
#define BACKEND_VER "20210911"

#define EOM_KEN ';'
#define EOM_TH '\r'
Expand Down Expand Up @@ -165,6 +165,7 @@ struct kenwood_priv_data
int is_k4d;
int is_k4hd;
int no_id; // if true will not send ID; with every set command
int opened; // true once rig_open is called to avoid setting VFOA every open call
};


Expand Down

0 comments on commit 0f2a92b

Please sign in to comment.