[Hamlib-commits] Hamlib -- Ham radio control libraries branch Hamlib-4.6.3 updated. 4.6.3-18-g4801e
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: n0nb <n0...@us...> - 2025-07-08 02:47:52
|
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 4801ebd081b563ae0eb77c2d8a14d89c923f619d (commit) via a42e5f62a6407d1470c2ddafbc0342c667c3b8ef (commit) from e03441d9aed44c556dd0acc45f6438b1e6ad6942 (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 4801ebd081b563ae0eb77c2d8a14d89c923f619d Author: Nate Bargmann <n0...@n0...> Date: Mon Jul 7 21:46:23 2025 -0500 Update NEWS for SmartSDR space CW handling diff --git a/NEWS b/NEWS index c23a496ca..11d96551b 100644 --- a/NEWS +++ b/NEWS @@ -27,6 +27,7 @@ Version 4.6.4 * Restore TS-590S/SG RIG_LEVEL_RFPOWER_METER, Fix rotctl \dump_caps output (TNX, George Baltz). * Add CW sending capability to Flex SmartSDR. (TNX Michael Morgan) + * Handle spaces correctly for Fles SmartSDR. (TNX Michael Morgan) Version 4.6.3 * 2025-06-10 commit a42e5f62a6407d1470c2ddafbc0342c667c3b8ef Author: aa5sh <844...@us...> Date: Thu Jul 3 00:21:50 2025 -0500 smartsdr--CWX Updates Needed to replace spaces with 0x7f characters. (cherry picked from commit 0c94ba468ac1cd5e03de2e948784ad5e83bf5f11) diff --git a/rigs/flexradio/smartsdr.c b/rigs/flexradio/smartsdr.c index b61da374a..8cb105e0f 100644 --- a/rigs/flexradio/smartsdr.c +++ b/rigs/flexradio/smartsdr.c @@ -624,17 +624,28 @@ int sdr1k_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val) int smartsdr_send_morse(RIG *rig, vfo_t vfo, const char *msg) { - int buf_len; + ENTERFUNC; + int retval; - buf_len = strlen(msg) + 12; + size_t msg_len = strlen(msg); + size_t buf_len = msg_len + 20; + + char newmsg[msg_len + 1]; + strncpy(newmsg, msg, msg_len + 1); + + // Replace spaces with 0x7f + for (size_t i = 0; newmsg[i] != '\0'; i++) { + if (newmsg[i] == ' ') { + newmsg[i] = 0x7f; + } + } + char cmd[buf_len]; - ENTERFUNC; + snprintf(cmd, sizeof(cmd), "cwx send \"%s\"", newmsg); - sprintf(cmd, "cwx send \"%s\"", msg); retval = smartsdr_transaction(rig, cmd); RETURNFUNC(retval); - } int smartsdr_stop_morse(RIG *rig, vfo_t vfo) diff --git a/rigs/flexradio/smartsdr_caps.h b/rigs/flexradio/smartsdr_caps.h index ca6487a94..8aaa487e9 100644 --- a/rigs/flexradio/smartsdr_caps.h +++ b/rigs/flexradio/smartsdr_caps.h @@ -77,4 +77,4 @@ // .set_func = _set_func, .send_morse = smartsdr_send_morse, .stop_morse = smartsdr_stop_morse, - .hamlib_check_rig_caps = HAMLIB_CHECK_RIG_CAPS + .hamlib_check_rig_caps = HAMLIB_CHECK_RIG_CAPS \ No newline at end of file ----------------------------------------------------------------------- Summary of changes: NEWS | 1 + rigs/flexradio/smartsdr.c | 21 ++++++++++++++++----- rigs/flexradio/smartsdr_caps.h | 2 +- 3 files changed, 18 insertions(+), 6 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |