kopia lustrzana https://github.com/Hamlib/Hamlib
Merge branch 'kenwood-read-retries' of git://git.code.sf.net/u/bsomervi/hamlib
commit
c21bc22bfc
|
@ -360,10 +360,17 @@ transaction_read:
|
||||||
retval, retry_read, rs->rigport.retry);
|
retval, retry_read, rs->rigport.retry);
|
||||||
|
|
||||||
// only retry if we expect a response from the command
|
// only retry if we expect a response from the command
|
||||||
if (datasize && retry_read++ < rs->rigport.retry)
|
if (retry_read++ < rs->rigport.retry)
|
||||||
|
{
|
||||||
|
if (datasize)
|
||||||
{
|
{
|
||||||
goto transaction_write;
|
goto transaction_write;
|
||||||
}
|
}
|
||||||
|
else if (-RIG_ETIMEOUT == retval)
|
||||||
|
{
|
||||||
|
goto transaction_read;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
goto transaction_quit;
|
goto transaction_quit;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue