Merge branch 'master' of github.com:Hamlib/Hamlib

pull/281/head
Nate Bargmann 2020-05-31 17:30:06 -05:00
commit e5e4283be5
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F72625E2EDBED598
2 zmienionych plików z 9 dodań i 7 usunięć

Wyświetl plik

@ -534,13 +534,14 @@ static int netrigctl_open(RIG *rig)
{ {
if (strcmp(setting, "vfo_ops") == 0) if (strcmp(setting, "vfo_ops") == 0)
{ {
rig_debug(RIG_DEBUG_TRACE, "%s: %s set to %s\n", __func__, setting, value);
rig->caps->vfo_ops = strtol(value, NULL, 0); rig->caps->vfo_ops = strtol(value, NULL, 0);
rig_debug(RIG_DEBUG_TRACE, "%s: %s set to %d\n", __func__, setting, rig->caps->vfo_ops);
} }
else if (strcmp(setting, "ptt_type") == 0) else if (strcmp(setting, "ptt_type") == 0)
{ {
rig_debug(RIG_DEBUG_TRACE, "%s: %s set to %s\n", __func__, setting, value);
rig->caps->ptt_type = strtol(value, NULL, 0); rig->caps->ptt_type = strtol(value, NULL, 0);
rig->state.pttport.type.ptt = rig->caps->ptt_type;
rig_debug(RIG_DEBUG_TRACE, "%s: %s set to %d\n", __func__, setting, rig->caps->ptt_type);
} }
else else
{ {

Wyświetl plik

@ -571,11 +571,6 @@ int main(int argc, char *argv[])
/* /*
* ex: RIG_PTT_PARALLEL and /dev/parport0 * ex: RIG_PTT_PARALLEL and /dev/parport0
*/ */
if (ptt_type != RIG_PTT_NONE)
{
my_rig->state.pttport.type.ptt = ptt_type;
}
if (dcd_type != RIG_DCD_NONE) if (dcd_type != RIG_DCD_NONE)
{ {
my_rig->state.dcdport.type.dcd = dcd_type; my_rig->state.dcdport.type.dcd = dcd_type;
@ -630,6 +625,12 @@ int main(int argc, char *argv[])
exit(2); exit(2);
} }
if (ptt_type != RIG_PTT_NONE)
{
my_rig->state.pttport.type.ptt = ptt_type;
my_rig->caps->ptt_type = ptt_type;
}
if (verbose > RIG_DEBUG_ERR) if (verbose > RIG_DEBUG_ERR)
{ {
printf("Opened rig model %u, '%s'\n", printf("Opened rig model %u, '%s'\n",