kopia lustrzana https://github.com/Hamlib/Hamlib
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
rodzic
c6abaa1111
commit
18842a5cdc
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
Ładowanie…
Reference in New Issue