Fix Kenwood CAT transaction busy retry mechanism.

Retries would always fail due to the expected response length being
modified prematurely to the response length of the error/busy
response.
Hamlib-3.0
Bill Somerville 2013-11-02 17:02:18 +00:00
rodzic c6abaa1111
commit 18842a5cdc
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -251,8 +251,6 @@ transaction_write:
goto transaction_write; goto transaction_write;
goto transaction_quit; goto transaction_quit;
} }
else
*datasize = retval;
/* Check that command termination is correct */ /* Check that command termination is correct */
if (strchr(cmdtrm, data[strlen(data)-1])==NULL) { if (strchr(cmdtrm, data[strlen(data)-1])==NULL) {
@ -294,6 +292,11 @@ transaction_write:
} }
} }
*datasize = retval; /* this is retval from successful
read_string above, don't assign
until here because IN value is
needed for retries */
/* always give back a null terminated string without /* always give back a null terminated string without
* the command terminator. * the command terminator.
*/ */