kopia lustrzana https://github.com/Hamlib/Hamlib
Fix set_ant and get_ant for rigctl -m 2 dump_caps
https://github.com/Hamlib/Hamlib/issues/1466pull/1470/head
rodzic
65bd022a2c
commit
bd746387f9
|
@ -736,6 +736,18 @@ static int netrigctl_open(RIG *rig)
|
|||
|
||||
if (!has) { rig->caps->get_conf = NULL; }
|
||||
}
|
||||
else if (strcmp(setting, "has_get_ant") == 0)
|
||||
{
|
||||
int has = strtol(value, NULL, 0);
|
||||
|
||||
if (!has) { rig->caps->get_ant = NULL; }
|
||||
}
|
||||
else if (strcmp(setting, "has_set_ant") == 0)
|
||||
{
|
||||
int has = strtol(value, NULL, 0);
|
||||
|
||||
if (!has) { rig->caps->set_ant = NULL; }
|
||||
}
|
||||
|
||||
#if 0 // for the future
|
||||
else if (strcmp(setting, "has_set_trn") == 0)
|
||||
|
@ -2811,7 +2823,7 @@ struct rig_caps netrigctl_caps =
|
|||
RIG_MODEL(RIG_MODEL_NETRIGCTL),
|
||||
.model_name = "NET rigctl",
|
||||
.mfg_name = "Hamlib",
|
||||
.version = "20231004.0",
|
||||
.version = "20231229.0",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_OTHER,
|
||||
|
|
|
@ -4671,6 +4671,8 @@ declare_proto_rig(dump_state)
|
|||
// fprintf(fout, "has_get_trn=%d\n", rig->caps->get_trn != NULL);
|
||||
fprintf(fout, "has_power2mW=%d\n", rig->caps->power2mW != NULL);
|
||||
fprintf(fout, "has_mW2power=%d\n", rig->caps->mW2power != NULL);
|
||||
fprintf(fout, "has_get_ant=%d\n", rig->caps->get_ant != NULL);
|
||||
fprintf(fout, "has_set_ant=%d\n", rig->caps->set_ant != NULL);
|
||||
fprintf(fout, "timeout=%d\n", rig->caps->timeout);
|
||||
fprintf(fout, "rig_model=%d\n", rig->caps->rig_model);
|
||||
fprintf(fout, "rigctld_version=%s\n", hamlib_version2);
|
||||
|
|
Ładowanie…
Reference in New Issue