Make FTDX5000 return to MIC input on closing

https://github.com/Hamlib/Hamlib/issues/1193
Hamlib-4.5.2
Mike Black W9MDB 2022-12-23 16:49:45 -06:00
rodzic 289788bae9
commit ee96efd5bc
2 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -662,6 +662,14 @@ int newcat_close(RIG *rig)
priv->poweron = 0;
}
if (is_ftdx5000)
{
// Ensure FT5000 is back to MIC input
SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "EX1030;");
rig_debug(RIG_DEBUG_TRACE, "%s: cmd_str = %s\n", __func__, priv->cmd_str);
newcat_set_cmd(rig); // don't care about the return
}
RETURNFUNC(RIG_OK);
}

Wyświetl plik

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