[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. ca7353abaab701eca3893
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: n0nb <n0...@us...> - 2025-06-30 13:19:43
|
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 ca7353abaab701eca3893bdad3f1895d22239b85 (commit) via 3b6577834eac8f46e6c3d3264509f9401a6f88d2 (commit) via b365d988a42ba468bc663f3d59043f75bc245fa2 (commit) from a6fb8a079a562014b9948e16a2dd817346fcf4e2 (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 ca7353abaab701eca3893bdad3f1895d22239b85 Merge: a6fb8a079 3b6577834 Author: Nate Bargmann <n0...@n0...> Date: Mon Jun 30 07:39:41 2025 -0500 Merge GitHun PR #1788 commit 3b6577834eac8f46e6c3d3264509f9401a6f88d2 Author: aa5sh <844...@us...> Date: Sat Jun 28 16:55:25 2025 -0500 Added RetVal 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 b365d988a42ba468bc663f3d59043f75bc245fa2 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. 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: rigs/flexradio/smartsdr.c | 30 ++++++++++++++++++++++++++++++ rigs/flexradio/smartsdr_caps.h | 2 ++ 2 files changed, 32 insertions(+) hooks/post-receive -- Hamlib -- Ham radio control libraries |