mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 10:27:18 +00:00
Change Elecraft K4 to use TQX instead of TQ to speed up ptt checking time
TQ waits for s-meter hold off time so can time out
This commit is contained in:
parent
74d780f19f
commit
47cb5fdc1a
@ -611,7 +611,14 @@ int elecraft_get_vfo_tq(RIG *rig, vfo_t *vfo)
|
||||
rig_debug(RIG_DEBUG_ERR, "%s: unable to parse FT '%s'\n", __func__, splitbuf);
|
||||
}
|
||||
|
||||
SNPRINTF(cmdbuf, sizeof(cmdbuf), "TQ;");
|
||||
if (rig->caps->rig_model == RIG_MODEL_K4)
|
||||
{
|
||||
SNPRINTF(cmdbuf, sizeof(cmdbuf), "TQX;");
|
||||
}
|
||||
else
|
||||
{
|
||||
SNPRINTF(cmdbuf, sizeof(cmdbuf), "TQ;");
|
||||
}
|
||||
retval = kenwood_safe_transaction(rig, cmdbuf, splitbuf, 12, 3);
|
||||
|
||||
if (retval != RIG_OK)
|
||||
@ -619,9 +626,9 @@ int elecraft_get_vfo_tq(RIG *rig, vfo_t *vfo)
|
||||
RETURNFUNC2(retval);
|
||||
}
|
||||
|
||||
if (sscanf(splitbuf, "TQ%1d", &tq) != 1)
|
||||
if (sscanf(splitbuf, "TQ%1d", &tq) != 1 && sscanf(splitbuf,"TQX%1d", &tq) != 1)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_ERR, "%s: unable to parse TQ '%s'\n", __func__, splitbuf);
|
||||
rig_debug(RIG_DEBUG_ERR, "%s: unable to parse TQ or TQX reponse of '%s'\n", __func__, splitbuf);
|
||||
}
|
||||
|
||||
*vfo = STATE(rig)->tx_vfo = RIG_VFO_A;
|
||||
|
Loading…
Reference in New Issue
Block a user