kopia lustrzana https://github.com/Hamlib/Hamlib
Change FT991, FTDX101MP, FTDX3000 to use ; for command validation
https://github.com/Hamlib/Hamlib/issues/1252pull/1261/head
rodzic
0f0bbeb612
commit
3254ac70a1
|
@ -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));
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue