kopia lustrzana https://github.com/Hamlib/Hamlib
In newcat_set_cmd_validate make exception processing for VS command
Return other cmds to full string comparison to validate data sent == data recvdpull/518/head
rodzic
00cc6e848f
commit
bcc80fef79
|
@ -9665,7 +9665,9 @@ int newcat_set_cmd_validate(RIG *rig)
|
|||
if (bytes > 0)
|
||||
{
|
||||
// if the first two chars match we are validated
|
||||
if (strncmp(priv->cmd_str, priv->ret_data, 2) == 0) { RETURNFUNC(RIG_OK); }
|
||||
if (strncmp(priv->cmd_str, "VS", 2) == 0
|
||||
&& strncmp(priv->cmd_str, priv->ret_data, 2) == 0) { RETURNFUNC(RIG_OK); }
|
||||
else if (strcmp(priv->cmd_str, priv->ret_data) == 0) { RETURNFUNC(RIG_OK); }
|
||||
else { rc = -RIG_EPROTO; }
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue