From 00031994c6e704e8c547ee6e9811c5302ed0962e Mon Sep 17 00:00:00 2001 From: Michael Black Date: Mon, 1 Jun 2020 17:38:03 -0500 Subject: [PATCH] Remove block setting VFO_A -- does not work with rigs that don't have VFO_A https://github.com/Hamlib/Hamlib/issues/274 --- rigs/icom/icom.c | 2 ++ rigs/icom/icom.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index a448db277..65ca20ee1 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -1128,6 +1128,7 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) } } +#if 0 // does not work with rigs without VFO_A if (vfo == RIG_VFO_CURR) { vfo = priv->curr_vfo; @@ -1135,6 +1136,7 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) rig_debug(RIG_DEBUG_VERBOSE, "%s: CurrVFO changed to %s\n", __func__, rig_strvfo(vfo)); } +#endif retval = set_vfo_curr(rig, vfo, priv->curr_vfo); diff --git a/rigs/icom/icom.h b/rigs/icom/icom.h index 4bdfef0c6..6c4dd84c8 100644 --- a/rigs/icom/icom.h +++ b/rigs/icom/icom.h @@ -31,7 +31,7 @@ #include #endif -#define BACKEND_VER "20200525" +#define BACKEND_VER "20200601" /* * defines used by comp_cal_str in rig.c