kopia lustrzana https://github.com/Hamlib/Hamlib
Merge branch 'master' of https://github.com/Hamlib/Hamlib
commit
92a4b76c0b
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue