[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 2eda4bf1a72116f07e8aa
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-18 23:51:17
|
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 2eda4bf1a72116f07e8aab4032264d7dd755cdbf (commit) from cf21f7d65c87e512f6179c24607c6ec06447856c (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 2eda4bf1a72116f07e8aab4032264d7dd755cdbf Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Jan 18 17:49:05 2021 -0600 Use only 1st 2 chars for newcat_set_command_validate check diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 2e176d36..b4e6e9c4 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -9654,8 +9654,8 @@ int newcat_set_cmd_validate(RIG *rig) if (bytes > 0) { - // if they match we are validated - if (strcmp(priv->cmd_str, priv->ret_data) == 0) { RETURNFUNC(RIG_OK); } + // if the first two chars match we are validated + if (strncmp(priv->cmd_str, priv->ret_data, 2) == 0) { RETURNFUNC(RIG_OK); } else { rc = -RIG_EPROTO; } } ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/newcat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |