pull/649/head
Mike Black W9MDB 2021-03-31 16:29:03 -05:00
commit 92a4b76c0b
2 zmienionych plików z 5 dodań i 5 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)
{

Wyświetl plik

@ -45,6 +45,7 @@
#include "frame.h"
static int set_vfo_curr(RIG *rig, vfo_t vfo, vfo_t curr_vfo);
static int icom_set_default_vfo(RIG *rig);
const cal_table_float_t icom_default_swr_cal =
{
@ -804,7 +805,7 @@ icom_rig_open(RIG *rig)
}
}
rig_set_vfo(rig,RIG_VFO_MAIN_A); // set rig to default vfo
icom_set_default_vfo(rig);
priv->poweron = 1;
if (rig->caps->has_get_func & RIG_FUNC_SATMODE)
@ -877,7 +878,7 @@ icom_rig_close(RIG *rig)
* So they will get defaults of Main/VFOA as the selected VFO
* and we force that selection
*/
int icom_set_default_vfo(RIG *rig)
static int icom_set_default_vfo(RIG *rig)
{
int retval;