Add 600ms wait when newcat.c see rig busy

https://github.com/Hamlib/Hamlib/issues/1100
pull/1102/head
Mike Black W9MDB 2022-08-19 08:21:29 -05:00
rodzic 6965927fb4
commit 179ee66f0d
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -10381,6 +10381,8 @@ int newcat_get_cmd(RIG *rig)
rig_debug(RIG_DEBUG_WARN, "%s: Rig busy - retrying %d of %d: '%s'\n", __func__, rig_debug(RIG_DEBUG_WARN, "%s: Rig busy - retrying %d of %d: '%s'\n", __func__,
retry_count, state->rigport.retry, priv->cmd_str); retry_count, state->rigport.retry, priv->cmd_str);
// DX3000 was taking 1.6 seconds in certain command sequences
hl_usleep(600*1000); // 600ms wait should cover most cases hopefully
rc = -RIG_ERJCTED; /* retry */ rc = -RIG_ERJCTED; /* retry */
break; break;

Wyświetl plik

@ -50,7 +50,7 @@
typedef char ncboolean; typedef char ncboolean;
/* shared function version */ /* shared function version */
#define NEWCAT_VER "20220816" #define NEWCAT_VER "20220819"
/* Hopefully large enough for future use, 128 chars plus '\0' */ /* Hopefully large enough for future use, 128 chars plus '\0' */
#define NEWCAT_DATA_LEN 129 #define NEWCAT_DATA_LEN 129