From f01129958ec9a3feaac4c3253b0e384183c4515f Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Thu, 11 Mar 2021 23:03:53 -0600 Subject: [PATCH] Fix flrig vfo swapping when set_mode with bandwidth is done https://github.com/Hamlib/Hamlib/issues/602 --- rigs/dummy/flrig.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/rigs/dummy/flrig.c b/rigs/dummy/flrig.c index 517abf69a..59dc5823c 100644 --- a/rigs/dummy/flrig.c +++ b/rigs/dummy/flrig.c @@ -1386,20 +1386,12 @@ static int flrig_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) sprintf(cmd_arg, "%ld", width); - // if we're not on VFOB but asking for VFOB still have to switch VFOS - if (!vfoSwitched && vfo == RIG_VFO_B) { flrig_set_vfo(rig, RIG_VFO_B); } - - if (!vfoSwitched && vfo == RIG_VFO_A) { flrig_set_vfo(rig, RIG_VFO_A); } - - retval = flrig_transaction(rig, "rig.set_bandwidth", cmd_arg, NULL, - 0); + retval = flrig_transaction(rig, "rig.set_bandwidth", cmd_arg, NULL, 0); if (retval < 0) { RETURNFUNC(retval); } - - flrig_set_vfo(rig, vfo); // ensure reset to our initial vfo } // Return to VFOA if needed