[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. aa9a8d8af1ebbbd7ca5e3
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Michael B. <mdb...@us...> - 2021-04-27 11:50:31
|
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 aa9a8d8af1ebbbd7ca5e32ba81c11fe1aa53c150 (commit)
via 19fb0e421d0e4862ffabbb703791c4804d052a33 (commit)
via d0b3484c13a18ae8485833debe95bc84b5b1a0e2 (commit)
from a281161fcff34034f4c83e833bd2522a4abcae28 (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 aa9a8d8af1ebbbd7ca5e32ba81c11fe1aa53c150
Merge: 19fb0e42 d0b3484c
Author: Mike Black W9MDB <mdb...@ya...>
Date: Tue Apr 27 06:50:07 2021 -0500
Merge branch 'master' of https://github.com/Hamlib/Hamlib
commit 19fb0e421d0e4862ffabbb703791c4804d052a33
Author: Mike Black W9MDB <mdb...@ya...>
Date: Tue Apr 27 06:47:58 2021 -0500
Change rig_set_split_mode to return RIG_OK when set_vfo and vfo_op are not available
For the FT-991 example there's no need to set mode on VFOB as there is only one mode for both VFOs
So if rig has neither of these we will assume VFOB mode does not need to be set
https://github.com/Hamlib/Hamlib/issues/684
diff --git a/src/rig.c b/src/rig.c
index 924ab4a3..42eb5987 100644
--- a/src/rig.c
+++ b/src/rig.c
@@ -3879,7 +3879,8 @@ int HAMLIB_API rig_set_split_mode(RIG *rig,
}
else
{
- RETURNFUNC(-RIG_ENAVAIL);
+ rig_debug(RIG_DEBUG_WARN, "%s: rig does not have set_vfo or vfo_op. Assuming mode already set\n", __func__);
+ RETURNFUNC(RIG_OK);
}
if (retcode != RIG_OK)
commit d0b3484c13a18ae8485833debe95bc84b5b1a0e2
Author: Mike Black W9MDB <mdb...@ya...>
Date: Tue Apr 27 06:47:58 2021 -0500
Change rig_set_split_mode to return RIG_OK when set_vfo and vfo_op are not available
For the FT-991 example there's no need to set mode on VFOB as there is only one mode for both VFOs
So if rig has neither of these we will assume VFOB mode does not need to be set
diff --git a/src/rig.c b/src/rig.c
index 924ab4a3..42eb5987 100644
--- a/src/rig.c
+++ b/src/rig.c
@@ -3879,7 +3879,8 @@ int HAMLIB_API rig_set_split_mode(RIG *rig,
}
else
{
- RETURNFUNC(-RIG_ENAVAIL);
+ rig_debug(RIG_DEBUG_WARN, "%s: rig does not have set_vfo or vfo_op. Assuming mode already set\n", __func__);
+ RETURNFUNC(RIG_OK);
}
if (retcode != RIG_OK)
-----------------------------------------------------------------------
Summary of changes:
src/rig.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
Hamlib -- Ham radio control libraries
|