[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 1bbe783e05ef0c089a373
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-05-08 17:48:28
|
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 1bbe783e05ef0c089a3739be2a486e6c95d89934 (commit) via d012d5e71401c9fede74aaadf4cedcc32a208110 (commit) from 27eb0087cb9c2c6332f88ae228c9c8ea11535972 (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 1bbe783e05ef0c089a3739be2a486e6c95d89934 Author: Mike Black W9MDB <mdb...@ya...> Date: Sat May 8 12:47:59 2021 -0500 Change freq printout in ft1000mp.c diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index 814f6b59..260150a1 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -770,8 +770,8 @@ int ft1000mp_set_freq(RIG *rig, vfo_t vfo, freq_t freq) to_bcd(p->p_cmd, freq / 10, 8); /* store bcd format in in p_cmd */ // cppcheck-suppress * - rig_debug(RIG_DEBUG_TRACE, "%s: freq = %"PRIll" Hz\n", __func__, - (int64_t)from_bcd(p->p_cmd, 8) * 10); + rig_debug(RIG_DEBUG_TRACE, "%s: freq = %"PRIfreq" Hz\n", __func__, + (freq_t)from_bcd(p->p_cmd, 8) * 10); cmd = p->p_cmd; /* get native sequence */ write_block(&rig_s->rigport, (char *) cmd, YAESU_CMD_LENGTH); commit d012d5e71401c9fede74aaadf4cedcc32a208110 Author: Mike Black W9MDB <mdb...@ya...> Date: Sat May 8 12:47:10 2021 -0500 Change default freq print to zero decimal places diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index 1f1c781e..c148b433 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -355,7 +355,7 @@ typedef double freq_t; /** * \brief printf(3) format to be used for freq_t type */ -#define PRIfreq "f" +#define PRIfreq ".0f" /** * \brief scanf(3) format to be used for freq_t type ----------------------------------------------------------------------- Summary of changes: include/hamlib/rig.h | 2 +- rigs/yaesu/ft1000mp.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |