Fix parsing of targetable_vfo in netrigctl.c

pull/649/head
Michael Black W9MDB 2021-03-31 11:40:48 -05:00
rodzic b696391a66
commit 36fbb26655
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -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)
{