kopia lustrzana https://github.com/Hamlib/Hamlib
Fix ptt_type to be consistent across open/close calls
https://github.com/Hamlib/Hamlib/issues/270pull/281/head
rodzic
0450345c81
commit
94e8859a6f
|
@ -534,13 +534,14 @@ static int netrigctl_open(RIG *rig)
|
|||
{
|
||||
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_debug(RIG_DEBUG_TRACE, "%s: %s set to %d\n", __func__, setting, rig->caps->vfo_ops);
|
||||
}
|
||||
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->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
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue