[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. b9cc75c4a020e7a800c03
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-03-18 20:41: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 b9cc75c4a020e7a800c03ba64d74fc7a6d6fe6a4 (commit) from b958e42a0c392d0e028a13b6259aec0fa1eb7169 (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 b9cc75c4a020e7a800c03ba64d74fc7a6d6fe6a4 Author: Michael Black W9MDB <mdb...@ya...> Date: Thu Mar 18 15:40:32 2021 -0500 Remove all frequency verification as it seems to create problems on some rigs https://github.com/Hamlib/Hamlib/issues/615 diff --git a/src/rig.c b/src/rig.c index 4702f68e..aa788610 100644 --- a/src/rig.c +++ b/src/rig.c @@ -1716,6 +1716,7 @@ int HAMLIB_API rig_set_freq(RIG *rig, vfo_t vfo, freq_t freq) set_cache_freq(rig, vfo, (freq_t)0); +#if 0 // this verification seems to be causing bad behavior on some reigs if (caps->get_freq) { retcode = rig_get_freq(rig, vfo, &tfreq); @@ -1734,6 +1735,9 @@ int HAMLIB_API rig_set_freq(RIG *rig, vfo_t vfo, freq_t freq) } } else { retry = 0; } +#else + tfreq = freq; +#endif } while (tfreq != freq && retry-- > 0); @@ -3504,7 +3508,11 @@ int HAMLIB_API rig_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq) if (retcode != RIG_OK) { RETURNFUNC(retcode); } +#if 0 // this verification seems to be causing bad behavior on some reigs retcode = rig_get_freq(rig, tx_vfo, &tfreq); +#else + tfreq = tx_freq; +#endif } while (tfreq != tx_freq && retry-- > 0 && retcode == RIG_OK); @@ -3534,6 +3542,7 @@ int HAMLIB_API rig_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq) do { +#if 0 // this verification seems to be causing bad behavior on some reigs if (caps->set_split_freq) { retcode = caps->set_split_freq(rig, vfo, tx_freq); @@ -3544,6 +3553,9 @@ int HAMLIB_API rig_set_split_freq(RIG *rig, vfo_t vfo, freq_t tx_freq) retcode = rig_set_freq(rig, RIG_VFO_CURR, tx_freq); rig_get_freq(rig, vfo, &tfreq); } +#else + tfreq = tx_freq; +#endif } while (tfreq != tx_freq && retry-- > 0 && retcode == RIG_OK); @@ -3973,6 +3985,7 @@ int HAMLIB_API rig_set_split_freq_mode(RIG *rig, do { retcode = caps->set_split_freq_mode(rig, vfo, tx_freq, tx_mode, tx_width); +#if 0 // this verification seems to be causing bad behavior on some reigs retcode2 = rig_get_split_freq(rig, vfo, &tfreq); if (tfreq != tx_freq) @@ -3982,6 +3995,10 @@ int HAMLIB_API rig_set_split_freq_mode(RIG *rig, tfreq, retry, retcode, retcode2); hl_usleep(50 * 1000); // 50ms sleep may help here } +#else + tfreq = tx_freq; + retcode2 = RIG_OK; +#endif } while (tfreq != tx_freq && retry-- > 0 && retcode == RIG_OK && retcode2 == RIG_OK); ----------------------------------------------------------------------- Summary of changes: src/rig.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) hooks/post-receive -- Hamlib -- Ham radio control libraries |