[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 54ab3b951d2eb3a01263b
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-03 15:17:58
|
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 54ab3b951d2eb3a01263b37b72b64c6e67a50827 (commit) from cf44a1a4e5fa5bfc900fd844624c7684683b0f26 (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 54ab3b951d2eb3a01263b37b72b64c6e67a50827 Author: Michael Black W9MDB <mdb...@ya...> Date: Sun Jan 3 09:16:20 2021 -0600 Add RIG_CAPS_STATUS_CPTR WSJT-X HamlibTransceiver.cpp now has no dependencies on structure offsets https://github.com/Hamlib/Hamlib/issues/484 diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index b406b000..cc731fb7 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -1953,7 +1953,8 @@ enum rig_caps_int_e { enum rig_caps_cptr_e { RIG_CAPS_VERSION_CPTR, RIG_CAPS_MFG_NAME_CPTR, - RIG_CAPS_MODEL_NAME_CPTR + RIG_CAPS_MODEL_NAME_CPTR, + RIG_CAPS_STATUS_CPTR }; /** diff --git a/src/misc.c b/src/misc.c index 1824a8c8..a504376e 100644 --- a/src/misc.c +++ b/src/misc.c @@ -2120,6 +2120,9 @@ const char *rig_get_caps_cptr(rig_model_t rig_model, enum rig_caps_cptr_e rig_ca case RIG_CAPS_MODEL_NAME_CPTR: return caps->model_name; + case RIG_CAPS_STATUS_CPTR: + return rig_strstatus(caps->status); + default: rig_debug(RIG_DEBUG_ERR, "%s: Unknown requested rig_caps value=%d\n", __func__, rig_caps); return "Unknown caps value"; ----------------------------------------------------------------------- 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 |