Fix elecraft TQ command processing.

Had put in an exception for Hilberling which affected Elecraft TQ command too
So have made Hilberling exception very specific
https://github.com/Hamlib/Hamlib/issues/1583
pull/1584/head
Mike Black W9MDB 2024-07-13 16:31:26 -05:00
rodzic 21897517b6
commit fc8642fbf8
2 zmienionych plików z 1 dodań i 7 usunięć

Wyświetl plik

@ -640,12 +640,6 @@ int elecraft_get_vfo_tq(RIG *rig, vfo_t *vfo)
SNPRINTF(cmdbuf, sizeof(cmdbuf), "TQ;");
}
retval = kenwood_safe_transaction(rig, cmdbuf, splitbuf, 12, 3);
if (rig->caps->rig_model == RIG_MODEL_K4 && RIGPORT(rig)->type.rig == RIG_PORT_NETWORK && strncmp(cmdbuf, "TQ", 2) == 0)
{
// special exception in case K4 is using TCP/IP
// seems to be slow on the TQ/TQX commands taking some 350ms
hl_usleep(250*1000);
}
if (retval != RIG_OK)
{

Wyświetl plik

@ -378,7 +378,7 @@ transaction_write:
skip |= strncmp(cmdstr, "PS1", 3) == 0;
skip |= strncmp(cmdstr, "PS0", 3) == 0;
skip |= strncmp(cmdstr, "K22", 3) == 0;
skip |= strncmp(cmdstr, "TQ", 2) == 0; // Skip Hilberling TQ command check
skip |= (rig->caps->rig_model == RIG_MODEL_PT8000A && (strlen(cmdstr) > 3) && (strncmp(cmdstr, "TQ", 2) == 0)); // Skip Hilberling TQn command check
if (skip)
{