[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. cd7811f3edbec08bcfb5b
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-29 22:46: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 cd7811f3edbec08bcfb5bfc93d62053a9cea99d4 (commit) from 8e707636197345c982c187119c12e49ab8ce3ef4 (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 cd7811f3edbec08bcfb5bfc93d62053a9cea99d4 Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jan 29 16:32:16 2021 -0600 Fix icom_get_mode for rigs with 1-byte mode_len https://github.com/Hamlib/Hamlib/issues/522 diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index aecf0540..455b7a7a 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -1911,7 +1911,8 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) /* * modebuf should contain Cn,Data area */ - mode_len--; + // when mode gets here it should be 2 or 1 + // mode_len--; if (mode_len != 2 && mode_len != 1) { diff --git a/rigs/icom/icom.h b/rigs/icom/icom.h index 34e055a9..4d87d12d 100644 --- a/rigs/icom/icom.h +++ b/rigs/icom/icom.h @@ -30,7 +30,7 @@ #include <sys/time.h> #endif -#define BACKEND_VER "20210120" +#define BACKEND_VER "20210129" /* * defines used by comp_cal_str in rig.c ----------------------------------------------------------------------- Summary of changes: rigs/icom/icom.c | 3 ++- rigs/icom/icom.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |