[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 198f1cb43e467cf3657f3
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: Michael B. <mdb...@us...> - 2021-03-11 15:02:05
|
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 198f1cb43e467cf3657f348fdbe23f6f8c10086a (commit)
via 3f83cb6b6d10f2ff23445dfaa91668f901ac4ba5 (commit)
from 1d23fb6358510aac550350088fcc90b8fc7c60ee (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 198f1cb43e467cf3657f348fdbe23f6f8c10086a
Author: Michael Black W9MDB <mdb...@ya...>
Date: Thu Mar 11 08:51:30 2021 -0600
Remove some cache debug
diff --git a/src/rig.c b/src/rig.c
index 946f9729..c17518fb 100644
--- a/src/rig.c
+++ b/src/rig.c
@@ -1408,8 +1408,6 @@ static int get_cache_freq(RIG *rig, vfo_t vfo, freq_t *freq, int *cache_ms)
if (vfo == RIG_VFO_CURR) { vfo = rig->state.current_vfo; }
- rig_debug(RIG_DEBUG_TRACE, "%s: get vfo=%s\n", __func__, rig_strvfo(vfo));
-
// VFO_C to be implemented
switch (vfo)
{
commit 3f83cb6b6d10f2ff23445dfaa91668f901ac4ba5
Author: Michael Black W9MDB <mdb...@ya...>
Date: Thu Mar 11 08:44:29 2021 -0600
Reduce debug in misc.c cache info
diff --git a/src/misc.c b/src/misc.c
index cb702f8b..aaf56f9c 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -1570,8 +1570,8 @@ double HAMLIB_API elapsed_ms(struct timespec *start, int option)
start->tv_sec = start->tv_nsec = 0;
}
- rig_debug(RIG_DEBUG_TRACE, "%s: start = %ld,%ld\n", __func__,
- (long)start->tv_sec, (long)start->tv_nsec);
+ //rig_debug(RIG_DEBUG_TRACE, "%s: start = %ld,%ld\n", __func__,
+ // (long)start->tv_sec, (long)start->tv_nsec);
switch (option)
@@ -1588,8 +1588,8 @@ double HAMLIB_API elapsed_ms(struct timespec *start, int option)
case HAMLIB_ELAPSED_SET:
clock_gettime(CLOCK_REALTIME, start);
- rig_debug(RIG_DEBUG_TRACE, "%s: after gettime, start = %ld,%ld\n", __func__,
- (long)start->tv_sec, (long)start->tv_nsec);
+ //rig_debug(RIG_DEBUG_TRACE, "%s: after gettime, start = %ld,%ld\n", __func__,
+ // (long)start->tv_sec, (long)start->tv_nsec);
return 999 * 1000; // so we can tell the difference in debug where we came from
break;
@@ -1603,7 +1603,7 @@ double HAMLIB_API elapsed_ms(struct timespec *start, int option)
elapsed_msec = ((stop.tv_sec - start->tv_sec) + (stop.tv_nsec / 1e9 -
start->tv_nsec / 1e9)) * 1e3;
- rig_debug(RIG_DEBUG_TRACE, "%s: elapsed_msecs=%.0f\n", __func__, elapsed_msec);
+ //rig_debug(RIG_DEBUG_TRACE, "%s: elapsed_msecs=%.0f\n", __func__, elapsed_msec);
if (elapsed_msec < 0 || option == HAMLIB_ELAPSED_INVALIDATE) { return 1000000; }
-----------------------------------------------------------------------
Summary of changes:
src/misc.c | 10 +++++-----
src/rig.c | 2 --
2 files changed, 5 insertions(+), 7 deletions(-)
hooks/post-receive
--
Hamlib -- Ham radio control libraries
|