From a2c43875431414beac4cfd99e569ee5d89df0c58 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Fri, 15 Jan 2021 11:17:23 -0600 Subject: [PATCH] Fit newcat_set_command_validate FT comparison https://github.com/Hamlib/Hamlib/issues/505 --- rigs/yaesu/newcat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 990de8ef4..a357fbe15 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -9434,6 +9434,11 @@ int newcat_set_cmd_validate(RIG *rig) if (rc != RIG_OK) return -RIG_EIO; bytes = read_string(&state->rigport, priv->ret_data, sizeof(priv->ret_data), &cat_term, sizeof(cat_term)); + if (strncmp(priv->cmd_str,"FT",2)==0 && strncmp(priv->ret_data,"FT",2)==0) + { + // FT command does not echo what's sent so we just check the basic command + return RIG_OK; + } if (bytes > 0) { // if they match we are validated