From 4efbddd0e8f51054beb8b63c0038af82eb19c83f Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Sun, 19 Jul 2020 17:21:23 -0500 Subject: [PATCH] Add ability to set Icom MAIN_VFO_A/B and SUB_VFO_A/B https://github.com/Hamlib/Hamlib/issues/348 --- rigs/icom/icom.c | 6 ++---- rigs/icom/icom.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 5e8af1350..5878979c7 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -2111,8 +2111,7 @@ int icom_set_vfo(RIG *rig, vfo_t vfo) return -RIG_ERJCTED; } - rig->state.current_vfo = vfo; - return RIG_OK; + icvfo = RIG_VFO_MAIN_A ? S_VFOA : S_VFOB; break; @@ -2133,8 +2132,7 @@ int icom_set_vfo(RIG *rig, vfo_t vfo) return -RIG_ERJCTED; } - rig->state.current_vfo = vfo; - return RIG_OK; + icvfo = RIG_VFO_SUB_A ? S_VFOA : S_VFOB; break; diff --git a/rigs/icom/icom.h b/rigs/icom/icom.h index 5efb6283c..f016345a8 100644 --- a/rigs/icom/icom.h +++ b/rigs/icom/icom.h @@ -31,7 +31,7 @@ #include #endif -#define BACKEND_VER "20200715" +#define BACKEND_VER "20200719" /* * defines used by comp_cal_str in rig.c