Fix ptt_type to be consistent across open/close calls

https://github.com/Hamlib/Hamlib/issues/270
pull/281/head
Michael Black W9MDB 2020-05-31 15:52:38 -05:00
rodzic 0450345c81
commit 94e8859a6f
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -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
{