From 36fbb266559f6945d59da5527771a153a3a9cb06 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Wed, 31 Mar 2021 11:40:48 -0500 Subject: [PATCH] Fix parsing of targetable_vfo in netrigctl.c --- rigs/dummy/netrigctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rigs/dummy/netrigctl.c b/rigs/dummy/netrigctl.c index c8de52770..575fa5674 100644 --- a/rigs/dummy/netrigctl.c +++ b/rigs/dummy/netrigctl.c @@ -584,9 +584,8 @@ static int netrigctl_open(RIG *rig) } else if (strcmp(setting, "targetable_vfo") == 0) { - int has = strtol(value, NULL, 0); - - if (!has) { rig->caps->targetable_vfo = strtol(value, NULL, 0); } + rig->caps->targetable_vfo = strtol(value, NULL, 0); + rig_debug(RIG_DEBUG_ERR, "%s: targetable_vfo=0x%2x\n", __func__, rig->caps->targetable_vfo); } else if (strcmp(setting, "has_set_vfo") == 0) {