Change FT991, FTDX101MP, FTDX3000 to use ; for command validation

https://github.com/Hamlib/Hamlib/issues/1252
pull/1261/head
Mike Black W9MDB 2023-03-20 23:10:35 -05:00
rodzic 0f0bbeb612
commit 3254ac70a1
2 zmienionych plików z 16 dodań i 1 usunięć

Wyświetl plik

@ -10844,6 +10844,21 @@ int newcat_set_cmd_validate(RIG *rig)
if (strlen(valcmd) == 0) { RETURNFUNC(RIG_OK); }
// we can use a single ; to get a reponse of ?; for some rigs
// this list can be expanded as we get more testing
// seems newer rigs have this older ones time out
switch(rig->caps->rig_model)
{
case RIG_MODEL_FT991:
case RIG_MODEL_FTDX101MP:
case RIG_MODEL_FTDX3000:
strcpy(valcmd, "");
// these models do not work with a single ;
case RIG_MODEL_FT897:
default:
// no change to validation command
}
SNPRINTF(cmd, sizeof(cmd), "%s", valcmd);
rc = write_block(&state->rigport, (unsigned char *) cmd, strlen(cmd));

Wyświetl plik

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