[Hamlib-commits] Hamlib -- Ham radio control libraries branch Hamlib-4.6.3 updated. 4.6.3-16-ge0344
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: n0nb <n0...@us...> - 2025-06-30 12:58:08
|
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 e03441d9aed44c556dd0acc45f6438b1e6ad6942 (commit) via 0accc406c836cb56ff2fa165c806f0a21ffd1bc5 (commit) via c0d7a320565a50fefb8372571a2f5ab1ff965e00 (commit) from 8abb5efcf0b3eec5e9e7f8d1dac6bc4e10c7f560 (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 e03441d9aed44c556dd0acc45f6438b1e6ad6942 Author: Nate Bargmann <n0...@n0...> Date: Mon Jun 30 07:56:05 2025 -0500 Update NEWS for Flex CW diff --git a/NEWS b/NEWS index e0eb64e46..c23a496ca 100644 --- a/NEWS +++ b/NEWS @@ -26,6 +26,7 @@ Version 4.6.4 * Fix powerstat check for Icom R75 which rejects the command. (TNX Mark Fine). * 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) Version 4.6.3 * 2025-06-10 commit 0accc406c836cb56ff2fa165c806f0a21ffd1bc5 Author: aa5sh <844...@us...> Date: Sat Jun 28 16:55:25 2025 -0500 Added RetVal (cherry picked from commit 3b6577834eac8f46e6c3d3264509f9401a6f88d2) diff --git a/rigs/flexradio/smartsdr.c b/rigs/flexradio/smartsdr.c index 16c8402ab..b61da374a 100644 --- a/rigs/flexradio/smartsdr.c +++ b/rigs/flexradio/smartsdr.c @@ -625,25 +625,27 @@ 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; + int retval; buf_len = strlen(msg) + 12; char cmd[buf_len]; ENTERFUNC; sprintf(cmd, "cwx send \"%s\"", msg); - smartsdr_transaction(rig, cmd); + retval = smartsdr_transaction(rig, cmd); - RETURNFUNC(RIG_OK); + RETURNFUNC(retval); } int smartsdr_stop_morse(RIG *rig, vfo_t vfo) { + int retval; char cmd[64]; ENTERFUNC; sprintf(cmd, "cwx clear"); - smartsdr_transaction(rig, cmd); + retval = smartsdr_transaction(rig, cmd); - RETURNFUNC(RIG_OK); + RETURNFUNC(retval); } \ No newline at end of file commit c0d7a320565a50fefb8372571a2f5ab1ff965e00 Author: Michael Morgan <844...@us...> Date: Sat Jun 28 08:08:59 2025 -0500 FlexCW Added the option to send CW using CWX commands on Flex's. (cherry picked from commit b365d988a42ba468bc663f3d59043f75bc245fa2) diff --git a/rigs/flexradio/smartsdr.c b/rigs/flexradio/smartsdr.c index e91cab9c0..16c8402ab 100644 --- a/rigs/flexradio/smartsdr.c +++ b/rigs/flexradio/smartsdr.c @@ -45,6 +45,8 @@ static int smartsdr_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width); static int smartsdr_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width); +static int smartsdr_send_morse(RIG *rig, vfo_t vfo, const char *msg); +static int smartsdr_stop_morse(RIG *rig, vfo_t vfo); //static int smartsdr_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val); struct smartsdr_priv_data @@ -619,3 +621,29 @@ int sdr1k_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val) } } #endif + +int smartsdr_send_morse(RIG *rig, vfo_t vfo, const char *msg) +{ + int buf_len; + buf_len = strlen(msg) + 12; + char cmd[buf_len]; + ENTERFUNC; + + sprintf(cmd, "cwx send \"%s\"", msg); + smartsdr_transaction(rig, cmd); + + RETURNFUNC(RIG_OK); + +} + +int smartsdr_stop_morse(RIG *rig, vfo_t vfo) +{ + char cmd[64]; + ENTERFUNC; + + sprintf(cmd, "cwx clear"); + smartsdr_transaction(rig, cmd); + + RETURNFUNC(RIG_OK); + +} \ No newline at end of file diff --git a/rigs/flexradio/smartsdr_caps.h b/rigs/flexradio/smartsdr_caps.h index 4736412f2..ca6487a94 100644 --- a/rigs/flexradio/smartsdr_caps.h +++ b/rigs/flexradio/smartsdr_caps.h @@ -75,4 +75,6 @@ // .reset = smartsdr_reset, // .set_level = smartsdr_set_level, // .set_func = _set_func, + .send_morse = smartsdr_send_morse, + .stop_morse = smartsdr_stop_morse, .hamlib_check_rig_caps = HAMLIB_CHECK_RIG_CAPS ----------------------------------------------------------------------- Summary of changes: NEWS | 1 + rigs/flexradio/smartsdr.c | 30 ++++++++++++++++++++++++++++++ rigs/flexradio/smartsdr_caps.h | 2 ++ 3 files changed, 33 insertions(+) hooks/post-receive -- Hamlib -- Ham radio control libraries |