Fit newcat_set_command_validate FT comparison

https://github.com/Hamlib/Hamlib/issues/505
pull/518/head
Michael Black W9MDB 2021-01-15 11:17:23 -06:00
rodzic ad2c20f611
commit a2c4387543
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -9434,6 +9434,11 @@ int newcat_set_cmd_validate(RIG *rig)
if (rc != RIG_OK) return -RIG_EIO;
bytes = read_string(&state->rigport, priv->ret_data, sizeof(priv->ret_data),
&cat_term, sizeof(cat_term));
if (strncmp(priv->cmd_str,"FT",2)==0 && strncmp(priv->ret_data,"FT",2)==0)
{
// FT command does not echo what's sent so we just check the basic command
return RIG_OK;
}
if (bytes > 0)
{
// if they match we are validated