Fix set_freq in newcat.c to not do validation on FA/FB and TX since it's done in rig.c now

https://github.com/Hamlib/Hamlib/issues/575
pull/574/head
Michael Black W9MDB 2021-02-28 07:38:57 -06:00
rodzic c9913526be
commit edf0019960
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -9798,7 +9798,6 @@ int newcat_set_cmd(RIG *rig)
if (rc == RIG_OK)
{
rig_debug(RIG_DEBUG_TRACE, "%s: cmd_validate OK\n", __func__);
RETURNFUNC(RIG_OK);
}
else if (rc == -RIG_EPROTO)
{
@ -9820,6 +9819,14 @@ int newcat_set_cmd(RIG *rig)
{
RETURNFUNC(RIG_OK);
}
// freq set and ptt are now verified in rig.c
if (strncmp(priv->cmd_str,"FA",2)==0
|| strncmp(priv->cmd_str,"FB",2)==0
|| strncmp(priv->cmd_str,"TX",2)==0)
{
RETURNFUNC(RIG_OK);
}
if (strncmp(priv->cmd_str, "BS", 2) == 0)
{

Wyświetl plik

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