Add debug for newcat_set_cmd_validate

https://github.com/Hamlib/Hamlib/issues/505
pull/518/head
Michael Black W9MDB 2021-01-15 10:56:27 -06:00
rodzic 517fb87b8b
commit ea9a706743
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -9439,9 +9439,9 @@ int newcat_set_cmd_validate(RIG *rig)
if (strcmp(priv->cmd_str, priv->ret_data)==0) return RIG_OK;
else rc = -RIG_EPROTO;
}
rig_debug(RIG_DEBUG_ERR, "%s: cmd validation failed, try#%d\n", __func__, retry);
rig_debug(RIG_DEBUG_ERR, "%s: cmd validation failed, '%s'!='%s', try#%d\n", __func__, priv->cmd_str, priv->ret_data, retry);
hl_usleep(sleepms*1000);
} while(--retry > 0);
}
return -RIG_EPROTO;
}
/*

Wyświetl plik

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