From 86ca6de85fd0cd90aa6e34464ef4c0b5b6e38be7 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Tue, 23 Mar 2021 11:03:57 -0500 Subject: [PATCH] Change rig_get_freq call to use VFO_CURR instead of vfo to avoid looping https://github.com/Hamlib/Hamlib/issues/625 --- src/rig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rig.c b/src/rig.c index 27c95a235..9011d4726 100644 --- a/src/rig.c +++ b/src/rig.c @@ -2491,7 +2491,7 @@ int HAMLIB_API rig_set_vfo(RIG *rig, vfo_t vfo) // we only get the freq if we set the vfo OK if (retcode == RIG_OK && caps->get_freq) { - retcode = caps->get_freq(rig, vfo, &curr_freq); + retcode = caps->get_freq(rig, RIG_VFO_CURR, &curr_freq); rig_debug(RIG_DEBUG_TRACE, "%s: retcode from rig_get_freq = %.10000s\n", __func__, rigerror(retcode));