[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. a2c43875431414beac4cf
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-15 17:18:02
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via a2c43875431414beac4cfd99e569ee5d89df0c58 (commit) from ad2c20f611ba1d2511d021edddef67d9b9ed7480 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit a2c43875431414beac4cfd99e569ee5d89df0c58 Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jan 15 11:17:23 2021 -0600 Fit newcat_set_command_validate FT comparison https://github.com/Hamlib/Hamlib/issues/505 diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 990de8ef..a357fbe1 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 ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/newcat.c | 5 +++++ 1 file changed, 5 insertions(+) hooks/post-receive -- Hamlib -- Ham radio control libraries |