Fix dummy ptt_type when ptt_type is specified on command line for rigctl and rigctld

https://github.com/Hamlib/Hamlib/issues/888
pull/1148/head
Mike Black W9MDB 2022-11-13 08:04:27 -06:00
rodzic 8616be635e
commit 5164c1c366
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -554,6 +554,7 @@ int main(int argc, char *argv[])
rig_close(my_rig);
}
my_rig->caps->ptt_type = ptt_type;
dumpcaps(my_rig, stdout);
rig_cleanup(my_rig); /* if you care about memory */
@ -576,6 +577,7 @@ int main(int argc, char *argv[])
my_rig->caps->rig_model,
my_rig->caps->model_name);
}
my_rig->caps->ptt_type = ptt_type;
if (my_rig->caps->rig_model == RIG_MODEL_NETRIGCTL)
{

Wyświetl plik

@ -748,6 +748,7 @@ int main(int argc, char *argv[])
*/
if (dump_caps_opt)
{
my_rig->caps->ptt_type = ptt_type;
dumpcaps(my_rig, stdout);
rig_cleanup(my_rig); /* if you care about memory */
exit(0);
@ -770,6 +771,7 @@ int main(int argc, char *argv[])
my_rig->caps->rig_model,
my_rig->caps->model_name);
}
my_rig->caps->ptt_type = ptt_type;
rig_debug(RIG_DEBUG_VERBOSE, "Backend version: %s, Status: %s\n",
my_rig->caps->version, rig_strstatus(my_rig->caps->status));