[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 2654503779c286da567ab
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-18 14:48:37
|
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 2654503779c286da567ab64e95f551f163120b79 (commit) from 60279707e2b5d494d9b431789f9b97ea9edc1717 (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 2654503779c286da567ab64e95f551f163120b79 Author: Michael Black W9MDB <mdb...@ya...> Date: Mon Jan 18 08:48:10 2021 -0600 small improvement on caching check logic diff --git a/src/rig.c b/src/rig.c index 1889add0..e27db2b5 100644 --- a/src/rig.c +++ b/src/rig.c @@ -1673,10 +1673,8 @@ int HAMLIB_API rig_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) //cache_ms = elapsed_ms(&rig->state.cache.time_freq, HAMLIB_ELAPSED_GET); //rig_debug(RIG_DEBUG_TRACE, "%s: cache check2 age=%dms\n", __func__, cache_ms); - if (freq != 0 && cache_ms < rig->state.cache.timeout_ms - && rig->state.cache.vfo_freq == vfo) + if (freq != 0 && cache_ms < rig->state.cache.timeout_ms) { - *freq = rig->state.cache.freq; rig_debug(RIG_DEBUG_TRACE, "%s: %s cache hit age=%dms, freq=%.0f\n", __func__, rig_strvfo(vfo), cache_ms, *freq); RETURNFUNC(RIG_OK); ----------------------------------------------------------------------- Summary of changes: src/rig.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |