kopia lustrzana https://github.com/Hamlib/Hamlib
Change the sleep for kenwood retry to 50ms instead of using rig timeout.
Some rigs have very long timeouts > 500ms and retries need to be faster. Rig timeouts are not relevant to a retry. If rigs need more retries we can address that in the backends https://github.com/Hamlib/Hamlib/issues/226pull/234/head
rodzic
4b071f90ae
commit
ab424f4a82
|
@ -598,7 +598,7 @@ int kenwood_safe_transaction(RIG *rig, const char *cmd, char *buf,
|
|||
"%s: wrong answer; len for cmd %s: expected = %d, got %d\n",
|
||||
__func__, cmd, (int)expected, (int)length);
|
||||
err = -RIG_EPROTO;
|
||||
hl_usleep(rig->caps->timeout * 1000);
|
||||
hl_usleep(50 * 1000); // let's do a short wait
|
||||
}
|
||||
}
|
||||
while (err != RIG_OK && ++retry < rig->state.rigport.retry);
|
||||
|
|
Ładowanie…
Reference in New Issue