From 008b24a3448e56fb860b76211147e9b6dd3a286b Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Sat, 10 Oct 2020 15:44:11 -0500 Subject: [PATCH] Fix TUNE for FTDX5000 and FTDX101D https://github.com/Hamlib/Hamlib/issues/411 (cherry picked from commit 41be8d65e4bdd4a9fb73d0e899d50fcb9b02b749) --- rigs/yaesu/newcat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index bc18d01f4..8cde6cd1e 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -3882,7 +3882,9 @@ int newcat_set_func(RIG *rig, vfo_t vfo, setting_t func, int status) return -RIG_ENAVAIL; } - snprintf(priv->cmd_str, sizeof(priv->cmd_str), "AC00%d%c", status ? 1 : 0, + // some rigs use AC02 to actually start tuning + if (status == 1 && (is_ft101 || is_ft5000)) status = 2; + snprintf(priv->cmd_str, sizeof(priv->cmd_str), "AC00%d%c", status == 0 ? 0 : status, cat_term); break;