kopia lustrzana https://github.com/Hamlib/Hamlib
rodzic
5caa22b79a
commit
9b2904c0b6
|
@ -392,6 +392,7 @@ transaction_write:
|
|||
skip |= strncmp(cmdstr, "RD", 2) == 0;
|
||||
skip |= strncmp(cmdstr, "KYW", 3) == 0;
|
||||
skip |= strncmp(cmdstr, "KY ", 3) == 0;
|
||||
skip |= strncmp(cmdstr, "KY0", 3) == 0;
|
||||
skip |= strncmp(cmdstr, "KY2", 3) == 0;
|
||||
skip |= strncmp(cmdstr, "PS1", 3) == 0;
|
||||
skip |= strncmp(cmdstr, "PS0", 3) == 0;
|
||||
|
@ -400,7 +401,8 @@ transaction_write:
|
|||
if (skip)
|
||||
{
|
||||
// most command we give them a little time -- but not KY
|
||||
if (strncmp(cmdstr, "KY ", 3) != 0 && strncmp(cmdstr, "KY2", 3) != 0)
|
||||
if (strncmp(cmdstr, "KY", 2) != 0 || (cmdstr[2] != ' ' && cmdstr[2] != '0'
|
||||
&& cmdstr[2] != '2'))
|
||||
{
|
||||
hl_usleep(200 * 1000); // give little settle time for these commands
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue