[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. c4e37ef27728ae6d0ff1b
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Michael B. <mdb...@us...> - 2021-04-09 20:52:21
|
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 c4e37ef27728ae6d0ff1be9f052242d324140b96 (commit)
from 6901bb1cdaf6f2e0647c8e549ffdd2d80d009334 (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 c4e37ef27728ae6d0ff1be9f052242d324140b96
Author: Mike Black W9MDB <mdb...@ya...>
Date: Fri Apr 9 15:35:30 2021 -0500
Add timeout to dump_state so rigctld will use the rig's timeout value plus 200ms for additional network delays
diff --git a/rigs/dummy/netrigctl.c b/rigs/dummy/netrigctl.c
index 5d37ed83..00d17590 100644
--- a/rigs/dummy/netrigctl.c
+++ b/rigs/dummy/netrigctl.c
@@ -612,6 +612,12 @@ static int netrigctl_open(RIG *rig)
if (!has) { rig->caps->get_freq = NULL; }
}
+ else if (strcmp(setting, "timeout") == 0)
+ {
+ // use the rig's timeout value pluse 200ms for potential network delays
+ rig->caps->timeout = strtol(value, NULL, 0) + 200;
+ rig_debug(RIG_DEBUG_TRACE, "%s: timeout value = '%s', final timeout=%d\n", __func__, value, rig->caps->timeout);
+ }
else
{
// not an error -- just a warning for backward compatibility
@@ -2288,7 +2294,7 @@ struct rig_caps netrigctl_caps =
RIG_MODEL(RIG_MODEL_NETRIGCTL),
.model_name = "NET rigctl",
.mfg_name = "Hamlib",
- .version = "20210326.0",
+ .version = "20210409.0",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_OTHER,
diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c
index af398965..90049882 100644
--- a/tests/rigctl_parse.c
+++ b/tests/rigctl_parse.c
@@ -4319,6 +4319,7 @@ declare_proto_rig(dump_state)
fprintf(fout, "has_get_vfo=%d\n", rig->caps->get_vfo != NULL);
fprintf(fout, "has_set_freq=%d\n", rig->caps->set_freq != NULL);
fprintf(fout, "has_get_freq=%d\n", rig->caps->get_freq != NULL);
+ fprintf(fout, "timeout=%d\n", rig->caps->timeout);
fprintf(fout, "done\n");
}
-----------------------------------------------------------------------
Summary of changes:
rigs/dummy/netrigctl.c | 8 +++++++-
tests/rigctl_parse.c | 1 +
2 files changed, 8 insertions(+), 1 deletion(-)
hooks/post-receive
--
Hamlib -- Ham radio control libraries
|