[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 5fdf5f0e63e6e82b683da
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-02 22:33:26
|
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 5fdf5f0e63e6e82b683dab48d7b1ed5fd0449c0c (commit) from 92c6d98e8ee1f0b236898fb65d75307d9df2ac06 (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 5fdf5f0e63e6e82b683dab48d7b1ed5fd0449c0c Author: Michael Black W9MDB <mdb...@ya...> Date: Sat Jan 2 16:32:16 2021 -0600 Fix freq_new error https://github.com/Hamlib/Hamlib/issues/485 diff --git a/src/rig.c b/src/rig.c index 5c9b64a5..18cceacb 100644 --- a/src/rig.c +++ b/src/rig.c @@ -1395,6 +1395,7 @@ int HAMLIB_API rig_set_freq(RIG *rig, vfo_t vfo, freq_t freq) { const struct rig_caps *caps; int retcode; + freq_t freq_new = freq; rig_debug(RIG_DEBUG_VERBOSE, "%s called vfo=%s, freq=%g\n", __func__, rig_strvfo(vfo), freq); @@ -1483,7 +1484,6 @@ int HAMLIB_API rig_set_freq(RIG *rig, vfo_t vfo, freq_t freq) if (retcode == RIG_OK && caps->get_freq != NULL) { - freq_t freq_new = freq; // verify our freq to ensure HZ mods are seen // some rigs truncate or round e.g. 1,2,5,10,20,100Hz intervals ----------------------------------------------------------------------- Summary of changes: src/rig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |