[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. a7b9620f910e2270caca7
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-15 23:29:40
|
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 a7b9620f910e2270caca7a2381d200615560bbcc (commit) from 598b105e79f8adda2d3844b712028871e8265d6d (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 a7b9620f910e2270caca7a2381d200615560bbcc Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jan 15 17:29:02 2021 -0600 Make band_index detect change by VFO https://github.com/Hamlib/Hamlib/issues/510 diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index ef520dd7..38116954 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -806,8 +806,20 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq) // // Restore band memory if we can and band is changing -- we do it before we set the frequency // And only when not in split mode (note this check has been removed for testing) - if (newcat_valid_command(rig, "BS") - && newcat_band_index(freq) != newcat_band_index(rig->state.current_freq) + int changing; + + if (vfo == RIG_VFO_A || vfo == RIG_VFO_MAIN) + { + changing = newcat_band_index(freq) != rig->state.cache.freqMainA; + rig_debug(RIG_DEBUG_TRACE, "%s: VFO_A freq changing=%d\n", __func__, changing); + } + else + { + changing = newcat_band_index(freq) != rig->state.cache.freqMainB; + rig_debug(RIG_DEBUG_TRACE, "%s: VFO_B freq changing=%d\n", __func__, changing); + } + + if (newcat_valid_command(rig, "BS") && changing // remove the split check here -- hopefully works OK //&& !rig->state.cache.split && !is_ft891) // 891 does not remember bandwidth so don't do this ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/newcat.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |