[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. v4.0rc1-15-g7b352718
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2020-07-17 11:28:36
|
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 7b3527187c7c195b37c9c9b991559f5a2663e7dc (commit) from ec24abb6c624bc4560452cc282de35b6310b455c (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 7b3527187c7c195b37c9c9b991559f5a2663e7dc Author: Michael Black W9MDB <mdb...@ya...> Date: Fri Jul 17 06:28:13 2020 -0500 Really fix ft1000mp.c get_rit diff --git a/rigs/yaesu/ft1000mp.c b/rigs/yaesu/ft1000mp.c index ae830a93..d5d34479 100644 --- a/rigs/yaesu/ft1000mp.c +++ b/rigs/yaesu/ft1000mp.c @@ -1232,7 +1232,8 @@ int ft1000mp_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit) } /* big endian integer, kinda */ - f = ((p[0] && 0x7f) << 8) + p[1]; + f = ((p[0] & 0x7f) << 8) + p[1]; + if (p[0] & 0x80) { f *= -1; ----------------------------------------------------------------------- Summary of changes: rigs/yaesu/ft1000mp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |