From 5df9f81beffcdb6e6f5678374e49e237b60aa345 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Sat, 30 May 2020 16:57:38 -0500 Subject: [PATCH] Fix RIG_VFO_NONE problem in icom.c https://github.com/Hamlib/Hamlib/issues/270 --- rigs/icom/icom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 7d2468fde..a448db277 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -1131,6 +1131,7 @@ int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) if (vfo == RIG_VFO_CURR) { vfo = priv->curr_vfo; + if (vfo == RIG_VFO_NONE) vfo = RIG_VFO_A; rig_debug(RIG_DEBUG_VERBOSE, "%s: CurrVFO changed to %s\n", __func__, rig_strvfo(vfo)); }