[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 8fe1615ccd8b5d1fb3f4e
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-04-17 03:31:48
|
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 8fe1615ccd8b5d1fb3f4edde41fee954c334a8e9 (commit) via 1bd795e297b131da1367ba498e0d14a6f9d3d0c6 (commit) from a1f5d4f5e3f0b4bf93dc980a12dcc9fac989c2ce (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 8fe1615ccd8b5d1fb3f4edde41fee954c334a8e9 Author: Mike Black W9MDB <mdb...@ya...> Date: Fri Apr 16 17:30:39 2021 -0500 Force Icom rigs to set VFOA as startup VFO https://github.com/Hamlib/Hamlib/issues/665 diff --git a/src/rig.c b/src/rig.c index db38adbc..d683d1c6 100644 --- a/src/rig.c +++ b/src/rig.c @@ -1014,6 +1014,7 @@ int HAMLIB_API rig_open(RIG *rig) if (backend_num == RIG_ICOM) { + rig_set_vfo(rig, RIG_VFO_A); // force VFOA as our startup VFO rig_debug(RIG_DEBUG_TRACE, "%s: Icom rig so default vfo = %s\n", __func__, rig_strvfo(rs->current_vfo)); } commit 1bd795e297b131da1367ba498e0d14a6f9d3d0c6 Author: Mike Black W9MDB <mdb...@ya...> Date: Thu Apr 15 17:19:42 2021 -0500 Add vfo_fixup to rig_set_vfo https://github.com/Hamlib/Hamlib/issues/665 diff --git a/src/rig.c b/src/rig.c index e90ca43a..db38adbc 100644 --- a/src/rig.c +++ b/src/rig.c @@ -2495,6 +2495,8 @@ int HAMLIB_API rig_set_vfo(RIG *rig, vfo_t vfo) RETURNFUNC(-RIG_EIO); } + vfo = vfo_fixup(rig, vfo); + if (vfo == RIG_VFO_CURR) { RETURNFUNC(RIG_OK); } // make sure we are asking for a VFO that the rig actually has ----------------------------------------------------------------------- Summary of changes: src/rig.c | 3 +++ 1 file changed, 3 insertions(+) hooks/post-receive -- Hamlib -- Ham radio control libraries |