[Hamlib-commits] Hamlib -- Ham radio control libraries branch Hamlib-4.6.3 updated. 6150ee94c703b8d
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: n0nb <n0...@us...> - 2025-05-29 17:40:45
|
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, Hamlib-4.6.3 has been updated via 6150ee94c703b8d02d200ed685c497408394fc2a (commit) via 59ab35248703d5b492817c1d1e2511da41ede88e (commit) from 8f919a5a54d7318afea557790d34ddb74c1c6b56 (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 6150ee94c703b8d02d200ed685c497408394fc2a Author: George Baltz N3GB <Geo...@gm...> Date: Wed May 28 09:57:04 2025 -0400 Fix backward frequency tests in ft857.c Found by cppcheck.sh (cherry picked from commit 00d285576cae5c5db3cdac03f3b9abc13508a964) diff --git a/rigs/yaesu/ft857.c b/rigs/yaesu/ft857.c index fa7530922..eee908bc2 100644 --- a/rigs/yaesu/ft857.c +++ b/rigs/yaesu/ft857.c @@ -928,11 +928,11 @@ int ft857_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val) rig_get_cache(rig, vfo, &freq, &freq_ms, &mode, &mode_ms, &width, &width_ms); - if (144000000.0f >= freq && 148000000.0f <= freq) + if (144000000.0f <= freq && 148000000.0f > freq) { return ft857_get_pometer_level(rig, val, &rig->caps->rfpower_meter_cal, 2.0); } - else if (420000000.0f >= freq && 450000000.0f <= freq) + else if (420000000.0f <= freq && 450000000.0f > freq) { return ft857_get_pometer_level(rig, val, &rig->caps->rfpower_meter_cal, 5.0); } commit 59ab35248703d5b492817c1d1e2511da41ede88e Author: George Baltz N3GB <Geo...@gm...> Date: Sat May 17 14:22:09 2025 -0400 Fix out of sequence merge for issue #1634 Still undetermined if fix is needed for TS-590SG (cherry picked from commit a4b6ef4fd73dce67de5cb859f111d819d40313ed) diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index c4449c5d6..45bd5012f 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -231,7 +231,7 @@ struct confparams kenwood_cfg_params[] = { RIG_CONF_END, NULL, } }; -int remove_nonprint(char *s) +static int remove_nonprint(char *s) { int i, j = 0; if (s == NULL) return 0; @@ -392,7 +392,7 @@ transaction_write: skip |= strncmp(cmdstr, "RD", 2) == 0; skip |= strncmp(cmdstr, "KYW", 3) == 0; skip |= strncmp(cmdstr, "KY ", 3) == 0; - skip |= strncmp(cmdstr, "KY0", 3) == 0; + skip |= strncmp(cmdstr, "KY0", 3) == 0; skip |= strncmp(cmdstr, "KY2", 3) == 0; skip |= strncmp(cmdstr, "PS1", 3) == 0; skip |= strncmp(cmdstr, "PS0", 3) == 0; @@ -770,7 +770,7 @@ int kenwood_safe_transaction(RIG *rig, const char *cmd, char *buf, if (checklen && length != expected) /* worth retrying as some rigs occasionally send short results */ { - // QRPLABS can't seem top decide if they give 37 or 38 bytes for IF command + // QRPLABS can't seem to decide if they give 37 or 38 bytes for IF command if (strncmp(cmd, "IF", 2) == 0 && rig->caps->rig_model == RIG_MODEL_QRPLABS) { break; } struct kenwood_priv_data *priv = STATE(rig)->priv; @@ -5575,6 +5575,14 @@ int kenwood_send_morse(RIG *rig, vfo_t vfo, const char *msg) SNPRINTF(morsebuf, sizeof(morsebuf), "KY %s", m2); break; + case RIG_MODEL_TS590S: + //??case RIG_MODEL_TS590SG: + /* The command must consist of 28 bytes right aligned. + * See https://github.com/Hamlib/Hamlib/issues/1634 + */ + SNPRINTF(morsebuf, sizeof(morsebuf), "KY %24s", m2); + break; + case RIG_MODEL_TS890S: SNPRINTF(morsebuf, sizeof morsebuf, "KY2%s", m2); break; @@ -5589,11 +5597,6 @@ int kenwood_send_morse(RIG *rig, vfo_t vfo, const char *msg) } /* FALL THROUGH */ - case RIG_MODEL_TS590S: - /* the command must consist of 28 bytes right aligned */ - SNPRINTF(morsebuf, sizeof(morsebuf), "KY %24s", m2); - break; - default: /* the command must consist of 28 bytes 0x20 padded */ SNPRINTF(morsebuf, sizeof(morsebuf), "KY %-24s", m2); diff --git a/rigs/kenwood/kenwood.h b/rigs/kenwood/kenwood.h index f553cadc4..36783db08 100644 --- a/rigs/kenwood/kenwood.h +++ b/rigs/kenwood/kenwood.h @@ -28,7 +28,7 @@ #include "token.h" #include "idx_builtin.h" -#define BACKEND_VER "20250107" +#define BACKEND_VER "20250515" #define EOM_KEN ';' #define EOM_TH '\r' ----------------------------------------------------------------------- Summary of changes: rigs/kenwood/kenwood.c | 19 +++++++++++-------- rigs/kenwood/kenwood.h | 2 +- rigs/yaesu/ft857.c | 4 ++-- 3 files changed, 14 insertions(+), 11 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |