Win4Yaesu is not recognizing EX commands so we ignore errors on the EX command for some Yaeus rigs

pull/1242/head
Mike Black W9MDB 2023-02-28 16:57:47 -06:00
rodzic ee7ecc71a1
commit fe1eabf531
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -545,6 +545,7 @@ int newcat_open(RIG *rig)
const char *handshake[3] = {"None", "Xon/Xoff", "Hardware"}; const char *handshake[3] = {"None", "Xon/Xoff", "Hardware"};
int err; int err;
int set_only = 0; int set_only = 0;
int retry_save = 0;
ENTERFUNC; ENTERFUNC;
@ -618,6 +619,8 @@ int newcat_open(RIG *rig)
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "%s", cmd); SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "%s", cmd);
retry_save = rig->state.rigport.retry;
rig->state.rigport.retry = 0;
if (set_only) if (set_only)
{ {
err = newcat_set_cmd(rig); err = newcat_set_cmd(rig);
@ -626,10 +629,11 @@ int newcat_open(RIG *rig)
{ {
err = newcat_get_cmd(rig); err = newcat_get_cmd(rig);
} }
rig->state.rigport.retry = retry_save;
if (err != RIG_OK) if (err != RIG_OK)
{ {
RETURNFUNC(err); // if we can an err we just ignore the failure -- Win4Yaesu was not recognizing EX032 command
} }
} }

Wyświetl plik

@ -50,7 +50,7 @@
typedef char ncboolean; typedef char ncboolean;
/* shared function version */ /* shared function version */
#define NEWCAT_VER "20230214" #define NEWCAT_VER "20230228"
/* 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