[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 98d0f20daaf7c3ce0e255
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-04 04:59:19
|
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 98d0f20daaf7c3ce0e2554cf9cda9cb0793d7426 (commit) from 8d9f7378db8f8c8c71f9790f9564060d130864e7 (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 98d0f20daaf7c3ce0e2554cf9cda9cb0793d7426 Author: Michael Black W9MDB <mdb...@ya...> Date: Sun Jan 3 22:52:56 2021 -0600 Change RIG_TARGETABLE_PURE to appropriate RIG_TARGETABLE -- might actually work now No rig has/had this flag This change affects rig_set_func, rig_get_func, rig_set_ext_level, rig_get_ext_func, rig_set_level, rig_get_level https://github.com/Hamlib/Hamlib/issues/414 diff --git a/src/settings.c b/src/settings.c index 357c2e17..42e72136 100644 --- a/src/settings.c +++ b/src/settings.c @@ -632,7 +632,7 @@ int HAMLIB_API rig_set_ext_level(RIG *rig, return -RIG_ENAVAIL; } - if ((caps->targetable_vfo & RIG_TARGETABLE_PURE) + if ((caps->targetable_vfo & RIG_TARGETABLE_LEVEL) || vfo == RIG_VFO_CURR || vfo == rig->state.current_vfo) { @@ -698,7 +698,7 @@ int HAMLIB_API rig_get_ext_level(RIG *rig, return -RIG_ENAVAIL; } - if ((caps->targetable_vfo & RIG_TARGETABLE_PURE) + if ((caps->targetable_vfo & RIG_TARGETABLE_LEVEL) || vfo == RIG_VFO_CURR || vfo == rig->state.current_vfo) { @@ -763,7 +763,7 @@ int HAMLIB_API rig_set_ext_func(RIG *rig, return -RIG_ENAVAIL; } - if ((caps->targetable_vfo & RIG_TARGETABLE_PURE) + if ((caps->targetable_vfo & RIG_TARGETABLE_FUNC) || vfo == RIG_VFO_CURR || vfo == rig->state.current_vfo) { @@ -829,7 +829,7 @@ int HAMLIB_API rig_get_ext_func(RIG *rig, return -RIG_ENAVAIL; } - if ((caps->targetable_vfo & RIG_TARGETABLE_PURE) + if ((caps->targetable_vfo & RIG_TARGETABLE_FUNC) || vfo == RIG_VFO_CURR || vfo == rig->state.current_vfo) { ----------------------------------------------------------------------- Summary of changes: src/settings.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |