[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 4d7c988bec70c17350189
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-17 21:36:34
|
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 4d7c988bec70c17350189f83a0a8700d2de6e939 (commit) from b1b6a0a7711e48a1c3b2a3e7f85a3e029929d4bc (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 4d7c988bec70c17350189f83a0a8700d2de6e939 Author: Michael Black W9MDB <mdb...@ya...> Date: Sun Jan 17 15:35:40 2021 -0600 Add some debug and another attempt to fix rig_set_cmd_validate setting the frequency correctly diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index d8607a5b..74c4d121 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -814,9 +814,10 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq) // And only when not in split mode (note this check has been removed for testing) int changing; - rig_debug(RIG_DEBUG_TRACE, "%s: rig->state.current_vfo=%s\n", __func__, rig_strvfo(rig->state.current_vfo)); - if (target_vfo == 0) + rig_debug(RIG_DEBUG_TRACE, "%s(%d)%s: rig->state.current_vfo=%s\n", __FILE__, __LINE__, __func__, rig_strvfo(rig->state.current_vfo)); + if (rig->state.current_vfo == RIG_VFO_A || rig->state.current_vfo == RIG_VFO_MAIN) { + rig_debug(RIG_DEBUG_TRACE, "%s(%d)%s: checking VFOA for band change \n", __FILE__, __LINE__, __func__); if (rig->state.cache.freqMainA == 0) { freq_t freqtmp; @@ -825,10 +826,11 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq) } changing = newcat_band_index(freq) != newcat_band_index( rig->state.cache.freqMainA); - rig_debug(RIG_DEBUG_TRACE, "%s: VFO_A freq changing=%d\n", __func__, changing); + rig_debug(RIG_DEBUG_TRACE, "%s: VFO_A band changing=%d\n", __func__, changing); } else { + rig_debug(RIG_DEBUG_TRACE, "%s(%d)%s: checking VFOB for band change \n", __FILE__, __LINE__, __func__); if (rig->state.cache.freqMainB == 0) { freq_t freqtmp; @@ -837,7 +839,7 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq) } changing = newcat_band_index(freq) != newcat_band_index( rig->state.cache.freqMainB); - rig_debug(RIG_DEBUG_TRACE, "%s: VFO_B freq changing=%d\n", __func__, changing); + rig_debug(RIG_DEBUG_TRACE, "%s: VFO_B band changing=%d\n", __func__, changing); } if (newcat_valid_command(rig, "BS") && changing @@ -6464,7 +6466,7 @@ ncboolean newcat_valid_command(RIG *rig, char const *const command) int search_high; int search_low; - ENTERFUNC; + //ENTERFUNC; rig_debug(RIG_DEBUG_TRACE, "%s %s\n", __func__, command); caps = rig->caps; ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/newcat.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |