Fix MD cmd for Win4Yaesu by not validating it. Was not responding fast enough and timing out during validation efforts

https://github.com/Hamlib/Hamlib/issues/1381
pull/1389/head
Mike Black W9MDB 2023-09-12 16:04:14 -05:00
rodzic 81e14ae4f1
commit 5b4654024a
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -10890,9 +10890,13 @@ int newcat_set_cmd_validate(RIG *rig)
}
else if ((strncmp(priv->cmd_str, "MD", 2) == 0) && (strlen(priv->cmd_str) > 3))
{
#if 0
strcpy(valcmd, priv->cmd_str); // pull the needed part of the cmd
valcmd[3] = ';';
valcmd[4] = 0;
#endif
// Win4Yaesu was not responding fast enough to validate the MD cmd
strcpy(valcmd, "");
}
else if ((strncmp(priv->cmd_str, "TX", 2) == 0) && (strlen(priv->cmd_str) > 3))
{
@ -11101,10 +11105,11 @@ int newcat_set_cmd(RIG *rig)
}
// freq set and ptt are now verified in rig.c
// ST command is not validate -- caused problems on FTDX101D
// ST command is not validated -- caused problems on FTDX101D
if (strncmp(priv->cmd_str, "FA", 2) == 0
|| strncmp(priv->cmd_str, "FB", 2) == 0
|| strncmp(priv->cmd_str, "TX", 2) == 0
|| strncmp(priv->cmd_str, "MD", 2) == 0 // Win4Yaesu not responding fast enough on MD change
|| strncmp(priv->cmd_str, "ST", 2) == 0)
{
RETURNFUNC(RIG_OK);

Wyświetl plik

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