kopia lustrzana https://github.com/Hamlib/Hamlib
In kenwood.c skip verification for RU/RD commands.
On the TS-2000 at least it caused Resource temporarily unavailable when sending ID right after RU/RD https://github.com/Hamlib/Hamlib/issues/677pull/691/head
rodzic
7b5765d549
commit
bfa7599687
|
@ -331,7 +331,16 @@ transaction_write:
|
||||||
// So we'll skip the checks just on this one command for now
|
// So we'll skip the checks just on this one command for now
|
||||||
// The TS-480 PC Control says RX; should return RX0; but it doesn't
|
// The TS-480 PC Control says RX; should return RX0; but it doesn't
|
||||||
// We may eventually want to verify PTT with rig_get_ptt instead
|
// We may eventually want to verify PTT with rig_get_ptt instead
|
||||||
if (retval == RIG_OK && strncmp(cmdstr, "RX", 2) == 0) { goto transaction_quit; }
|
// The TS-2000 doesn't like doing and ID right after RU or RD
|
||||||
|
if (retval == RIG_OK)
|
||||||
|
{
|
||||||
|
int skip = strncmp(cmdstr, "RX", 2) == 0;
|
||||||
|
skip |= strncmp(cmdstr, "RU", 2) == 0;
|
||||||
|
skip |= strncmp(cmdstr, "RD", 2) == 0;
|
||||||
|
if (skip) {
|
||||||
|
goto transaction_quit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Malachite SDR cannot send ID after FA
|
// Malachite SDR cannot send ID after FA
|
||||||
if (!datasize && priv->no_id) { RETURNFUNC(RIG_OK); }
|
if (!datasize && priv->no_id) { RETURNFUNC(RIG_OK); }
|
||||||
|
@ -340,6 +349,9 @@ transaction_write:
|
||||||
{
|
{
|
||||||
rig->state.hold_decode = 0;
|
rig->state.hold_decode = 0;
|
||||||
|
|
||||||
|
// there are some commands that have problems with immediate follow-up
|
||||||
|
// so we'll just ignore them
|
||||||
|
|
||||||
/* no reply expected so we need to write a command that always
|
/* no reply expected so we need to write a command that always
|
||||||
gives a reply so we can read any error replies from the actual
|
gives a reply so we can read any error replies from the actual
|
||||||
command being sent without blocking */
|
command being sent without blocking */
|
||||||
|
|
Ładowanie…
Reference in New Issue