Fix Yaesu not setting frequency

https://github.com/Hamlib/Hamlib/issues/594
pull/608/head
Michael Black W9MDB 2021-03-09 07:42:16 -06:00
rodzic 59dcb2e9b6
commit 68d4388df2
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -9727,8 +9727,6 @@ int newcat_set_cmd_validate(RIG *rig)
RETURNFUNC(-RIG_ENIMPL); RETURNFUNC(-RIG_ENIMPL);
} }
if (strlen(valcmd) == 0) { return RIG_OK; }
while (rc != RIG_OK && retry++ < retries) while (rc != RIG_OK && retry++ < retries)
{ {
int bytes; int bytes;
@ -9739,6 +9737,8 @@ int newcat_set_cmd_validate(RIG *rig)
if (rc != RIG_OK) { RETURNFUNC(-RIG_EIO); } if (rc != RIG_OK) { RETURNFUNC(-RIG_EIO); }
if (strlen(valcmd) == 0) { RETURNFUNC(RIG_OK); }
bytes = read_string(&state->rigport, priv->ret_data, sizeof(priv->ret_data), bytes = read_string(&state->rigport, priv->ret_data, sizeof(priv->ret_data),
&cat_term, sizeof(cat_term)); &cat_term, sizeof(cat_term));

Wyświetl plik

@ -50,7 +50,7 @@
typedef char ncboolean; typedef char ncboolean;
/* shared function version */ /* shared function version */
#define NEWCAT_VER "20210308" #define NEWCAT_VER "20210309"
/* 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