kopia lustrzana https://github.com/Hamlib/Hamlib
Fix dummy ptt_type when ptt_type is specified on command line for rigctl and rigctld
https://github.com/Hamlib/Hamlib/issues/888pull/1148/head
rodzic
8616be635e
commit
5164c1c366
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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));
|
||||
|
|
Ładowanie…
Reference in New Issue