[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. c1aaeba5acd6f1a78163d
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: n0nb <n0...@us...> - 2025-08-09 23:52:29
|
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 c1aaeba5acd6f1a78163d7b9fc86d4f268ef78d4 (commit)
via 221cc512bc7f87c540f55fbda8c4482cfc5e527d (commit)
from 10303d58038e4b35c00d94c35c417ca7cc2fb73c (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 c1aaeba5acd6f1a78163d7b9fc86d4f268ef78d4
Merge: 10303d580 221cc512b
Author: Nate Bargmann <n0...@n0...>
Date: Sat Aug 9 18:43:57 2025 -0500
Merge GitHub PR #1837
commit 221cc512bc7f87c540f55fbda8c4482cfc5e527d
Author: Daniele Forsi IU5HKX <iu...@gm...>
Date: Sat Aug 9 22:31:17 2025 +0200
Fix setting antenna number 3 for Yaesu FTDX3000
The argument ant_t ant is a bit mask, not a scalar.
Also use the defines instead of magic numbers.
diff --git a/rigs/yaesu/ft3000.c b/rigs/yaesu/ft3000.c
index 159197d63..9ca8d37a5 100644
--- a/rigs/yaesu/ft3000.c
+++ b/rigs/yaesu/ft3000.c
@@ -155,20 +155,21 @@ static int ft3000_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option)
switch (ant)
{
- case 1:
+ case RIG_ANT_1:
cmd = "AN01;"; // R3/1 ANT1/ANT3
break;
- case 2:
+ case RIG_ANT_2:
cmd = "AN02;"; // RE/2 ANT2/ANT3
break;
- case 3:
+ case RIG_ANT_3:
cmd = "AN03;"; // TRX ANT3
break;
default:
- rig_debug(RIG_DEBUG_ERR, "%s: expected 1,2,3 got %u\n", __func__, ant);
+ rig_debug(RIG_DEBUG_ERR, "%s: expected one of %u,%u,%u got %u\n", __func__,
+ RIG_ANT_1, RIG_ANT_2, RIG_ANT_3, ant);
RETURNFUNC(-RIG_EINVAL);
}
-----------------------------------------------------------------------
Summary of changes:
rigs/yaesu/ft3000.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
hooks/post-receive
--
Hamlib -- Ham radio control libraries
|