kopia lustrzana https://github.com/Hamlib/Hamlib
Fix newcat.c expectation of valcmd for FA/FB commands
rodzic
30a8258f4e
commit
1772ccde8b
|
@ -9710,6 +9710,8 @@ 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;
|
||||||
|
@ -9720,8 +9722,7 @@ int newcat_set_cmd_validate(RIG *rig)
|
||||||
|
|
||||||
if (rc != RIG_OK) { RETURNFUNC(-RIG_EIO); }
|
if (rc != RIG_OK) { RETURNFUNC(-RIG_EIO); }
|
||||||
|
|
||||||
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));
|
|
||||||
|
|
||||||
// FA and FB success is now verified in rig.c with a followup query
|
// FA and FB success is now verified in rig.c with a followup query
|
||||||
// so no validation is needed
|
// so no validation is needed
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
typedef char ncboolean;
|
typedef char ncboolean;
|
||||||
|
|
||||||
/* shared function version */
|
/* shared function version */
|
||||||
#define NEWCAT_VER "20210219"
|
#define NEWCAT_VER "20210227"
|
||||||
|
|
||||||
/* 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
|
||||||
|
|
Ładowanie…
Reference in New Issue