From ee96efd5bca8b5bda03a98438ad28fed805bfe32 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Fri, 23 Dec 2022 16:49:45 -0600 Subject: [PATCH] Make FTDX5000 return to MIC input on closing https://github.com/Hamlib/Hamlib/issues/1193 --- rigs/yaesu/newcat.c | 8 ++++++++ rigs/yaesu/newcat.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index fda8aa01d..9bff762a7 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -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); } diff --git a/rigs/yaesu/newcat.h b/rigs/yaesu/newcat.h index c45a4d9d3..a0be74878 100644 --- a/rigs/yaesu/newcat.h +++ b/rigs/yaesu/newcat.h @@ -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