From 7b1ad09aed7a22a65fed55f71837c5e183903e62 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 13 Jun 2021 16:18:46 -0500 Subject: [PATCH] Fix retcode compilation warning --- src/rig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rig.c b/src/rig.c index 616d4eb68..dd279cb92 100644 --- a/src/rig.c +++ b/src/rig.c @@ -2627,7 +2627,7 @@ int HAMLIB_API rig_set_vfo(RIG *rig, vfo_t vfo) if (retcode == RIG_OK) { - vfo = rig->state.current_vfo; // vfo may change in the rig backend + //vfo = rig->state.current_vfo; // vfo may change in the rig backend rig->state.cache.vfo = vfo; elapsed_ms(&rig->state.cache.time_vfo, HAMLIB_ELAPSED_SET); rig_debug(RIG_DEBUG_TRACE, "%s: rig->state.current_vfo=%s\n", __func__, @@ -4544,6 +4544,7 @@ int HAMLIB_API rig_get_split_vfo(RIG *rig, || vfo == rig->state.current_vfo) { TRACE; + retcode = RIG_OK; if (rig->caps->rig_model != RIG_MODEL_NETRIGCTL) { // rigctld doesn't like nested calls retcode = caps->get_split_vfo(rig, vfo, split, tx_vfo);