Remove retries for rigctl.c rig_open as they were never used and didn't work

pull/314/head
Michael Black W9MDB 2020-06-19 06:55:56 -05:00
rodzic 0ec3d475b5
commit 542e227f85
1 zmienionych plików z 1 dodań i 14 usunięć

Wyświetl plik

@ -153,7 +153,6 @@ int main(int argc, char *argv[])
char send_cmd_term = '\r'; /* send_cmd termination char */
int ext_resp = 0;
char resp_sep = '\n';
int i;
while (1)
{
@ -524,19 +523,7 @@ int main(int argc, char *argv[])
exit(0);
}
i = 0;
do // we'll try 5 times and sleep 200ms between tries
{
retcode = rig_open(my_rig);
if (retcode != RIG_OK)
{
hl_usleep(200000);
rig_debug(RIG_DEBUG_TRACE, "%s: error opening rig, try#%d\n", __func__, i + 1);
}
}
while (retcode != RIG_OK && ++i < 5);
retcode = rig_open(my_rig);
if (retcode != RIG_OK)
{