[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 8e313ecc3d4421a7c7edd
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Michael B. <mdb...@us...> - 2021-02-07 12:57:10
|
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 8e313ecc3d4421a7c7eddca1ff2443702700ff55 (commit)
from 66b3e368d621488dc3081d16a29f5d06ea5a8121 (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 8e313ecc3d4421a7c7eddca1ff2443702700ff55
Author: Michael Black W9MDB <mdb...@ya...>
Date: Sun Feb 7 06:56:48 2021 -0600
Add RIG_CAPS_HAS_GET_LEVEL
diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h
index 489d4683..276a872e 100644
--- a/include/hamlib/rig.h
+++ b/include/hamlib/rig.h
@@ -1950,7 +1950,8 @@ enum rig_caps_int_e {
RIG_CAPS_TARGETABLE_VFO,
RIG_CAPS_RIG_MODEL,
RIG_CAPS_PORT_TYPE,
- RIG_CAPS_PTT_TYPE
+ RIG_CAPS_PTT_TYPE,
+ RIG_CAPS_HAS_GET_LEVEL
};
enum rig_caps_cptr_e {
diff --git a/src/misc.c b/src/misc.c
index eccb7ba1..b8c2a66e 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -2159,6 +2159,9 @@ int rig_get_caps_int(rig_model_t rig_model, enum rig_caps_int_e rig_caps)
case RIG_CAPS_PORT_TYPE:
return caps->port_type;
+ case RIG_CAPS_HAS_GET_LEVEL:
+ return caps->has_get_level;
+
default:
rig_debug(RIG_DEBUG_ERR, "%s: Unknown rig_caps value=%d\n", __func__, rig_caps);
return -RIG_EINVAL;
-----------------------------------------------------------------------
Summary of changes:
include/hamlib/rig.h | 3 ++-
src/misc.c | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
hooks/post-receive
--
Hamlib -- Ham radio control libraries
|