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/226
pull/234/head
mdblack98 2020-04-29 08:21:48 -05:00
rodzic 4b071f90ae
commit ab424f4a82
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);