kopia lustrzana https://github.com/Hamlib/Hamlib
Fix Hamlib NET rigctl so it works from WSJT-X/JTDX when rigctld --vfo is used
https://github.com/Hamlib/Hamlib/issues/628pull/649/head
rodzic
4135a65503
commit
2aec11f5fe
|
@ -123,7 +123,7 @@ static int netrigctl_vfostr(RIG *rig, char *vfostr, int len, vfo_t vfo)
|
|||
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: vfo_opt=%d\n", __func__, rig->state.vfo_opt);
|
||||
|
||||
if (rig->state.vfo_opt)
|
||||
if (rig->state.vfo_opt || priv->rigctld_vfo_mode)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: vfo_opt vfo=%u\n", __func__, vfo);
|
||||
char *myvfo;
|
||||
|
@ -871,7 +871,7 @@ static int netrigctl_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
|
|||
char buf[BUF_MAX];
|
||||
char vfostr[16] = "";
|
||||
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called vfo=%s, ptt=%d\n", __func__, rig_strvfo(vfo), ptt);
|
||||
|
||||
ret = netrigctl_vfostr(rig, vfostr, sizeof(vfostr), RIG_VFO_A);
|
||||
|
||||
|
@ -879,6 +879,8 @@ static int netrigctl_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
|
|||
|
||||
len = sprintf(cmd, "T%s %d\n", vfostr, ptt);
|
||||
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: cmd=%s", __func__, cmd);
|
||||
|
||||
ret = netrigctl_transaction(rig, cmd, len, buf);
|
||||
|
||||
if (ret > 0)
|
||||
|
@ -2285,7 +2287,7 @@ struct rig_caps netrigctl_caps =
|
|||
RIG_MODEL(RIG_MODEL_NETRIGCTL),
|
||||
.model_name = "NET rigctl",
|
||||
.mfg_name = "Hamlib",
|
||||
.version = "20210207.0",
|
||||
.version = "20210326.0",
|
||||
.copyright = "LGPL",
|
||||
.status = RIG_STATUS_STABLE,
|
||||
.rig_type = RIG_TYPE_OTHER,
|
||||
|
|
Ładowanie…
Reference in New Issue