Fix newcat.c expectation of valcmd for FA/FB commands

pull/574/head
Michael Black W9MDB 2021-02-27 14:50:56 -06:00
rodzic 30a8258f4e
commit 1772ccde8b
2 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -9710,6 +9710,8 @@ int newcat_set_cmd_validate(RIG *rig)
RETURNFUNC(-RIG_ENIMPL);
}
if (strlen(valcmd) == 0) return RIG_OK;
while (rc != RIG_OK && retry++ < retries)
{
int bytes;
@ -9720,8 +9722,7 @@ int newcat_set_cmd_validate(RIG *rig)
if (rc != RIG_OK) { RETURNFUNC(-RIG_EIO); }
bytes = read_string(&state->rigport, priv->ret_data, sizeof(priv->ret_data),
&cat_term, sizeof(cat_term));
bytes = read_string(&state->rigport, priv->ret_data, sizeof(priv->ret_data), &cat_term, sizeof(cat_term));
// FA and FB success is now verified in rig.c with a followup query
// so no validation is needed

Wyświetl plik

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