From e5ba9c401af5a7d0ae33e58a7f803dd2da3f117d Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sat, 9 Jul 2022 07:40:59 -0500 Subject: [PATCH] Force FTDX5000 to 100ms CAT TIME OUT TIMER https://github.com/Hamlib/Hamlib/issues/1080 --- rigs/yaesu/ft5000.c | 2 +- rigs/yaesu/newcat.c | 11 +++++++++++ rigs/yaesu/newcat.h | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/rigs/yaesu/ft5000.c b/rigs/yaesu/ft5000.c index 6e51b73c0..eaeb7c7aa 100644 --- a/rigs/yaesu/ft5000.c +++ b/rigs/yaesu/ft5000.c @@ -140,7 +140,7 @@ const struct rig_caps ftdx5000_caps = RIG_MODEL(RIG_MODEL_FTDX5000), .model_name = "FTDX-5000", .mfg_name = "Yaesu", - .version = NEWCAT_VER ".3", + .version = NEWCAT_VER ".4", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_TRANSCEIVER, diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index ddc79d556..0bf467836 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -596,6 +596,17 @@ int newcat_open(RIG *rig) rig_debug(RIG_DEBUG_VERBOSE, "%s: disabling FTDX3000 band select\n", __func__); } + if (priv->rig_id == NC_RIGID_FTDX5000) + { + int err; + // set the CAT TIME OUT TIMER to 100ms + SNPRINTF(priv->cmd_str, sizeof(priv->cmd_str), "EX0331"); + if (RIG_OK != (err = newcat_set_cmd(rig))) + { + rig_debug(RIG_DEBUG_ERR, "%s: FTDX5000 CAT RATE error: %s\n", __func__, rigerror(err)); + } + } + RETURNFUNC(RIG_OK); } diff --git a/rigs/yaesu/newcat.h b/rigs/yaesu/newcat.h index 077981317..ff9350b3b 100644 --- a/rigs/yaesu/newcat.h +++ b/rigs/yaesu/newcat.h @@ -50,7 +50,7 @@ typedef char ncboolean; /* shared function version */ -#define NEWCAT_VER "20220703" +#define NEWCAT_VER "20220709" /* Hopefully large enough for future use, 128 chars plus '\0' */ #define NEWCAT_DATA_LEN 129