[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 862fda58be871ce33f9d9
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: n0nb <n0...@us...> - 2025-06-27 12:44:19
|
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 862fda58be871ce33f9d946c30d61232dd41549c (commit) via 5eda68367f86a770cae92d0a601ba1c040714597 (commit) from 9c187349117592a5a3fe21375c0508c11a262c09 (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 862fda58be871ce33f9d946c30d61232dd41549c Merge: 9c1873491 5eda68367 Author: Nate Bargmann <n0...@n0...> Date: Fri Jun 27 07:40:51 2025 -0500 Merge GitHub PR #1786 commit 5eda68367f86a770cae92d0a601ba1c040714597 Author: Mark J. Fine <mar...@fi...> Date: Fri Jun 27 08:05:03 2025 -0400 Corrected a couple of cppcheck warnings: uninitialize variable and condition always false. diff --git a/rigs/icom/icom_alt_agc.c b/rigs/icom/icom_alt_agc.c index 0f163e320..be845b87e 100644 --- a/rigs/icom/icom_alt_agc.c +++ b/rigs/icom/icom_alt_agc.c @@ -397,6 +397,7 @@ int icom_rig_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) rig_debug(RIG_DEBUG_TRACE, "%s: no extcmd found\n", __func__); + cmdbuf[0] = 0x00; cmd_len = 0; lvl_cn = C_CTL_FUNC; @@ -414,7 +415,8 @@ int icom_rig_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) /* * strbuf should contain Cn,Sc,Data area */ - cmdhead = ((lvl_sc == -1) ? 1 : 2) + cmd_len; + //cmdhead = ((lvl_sc == -1) ? 1 : 2) + cmd_len; + cmdhead = 2 + cmd_len; resp_len -= cmdhead; if (respbuf[0] != lvl_cn) ----------------------------------------------------------------------- Summary of changes: rigs/icom/icom_alt_agc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |