From 21e691153854c7029b4d0c152f964c7dd7acba3d Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Wed, 16 Dec 2020 07:46:39 -0600 Subject: [PATCH] Add rfpower_meter_str for FT2000D and reuse by dividing in half for FT2000 --- rigs/yaesu/newcat.c | 9 +++++++++ rigs/yaesu/newcat.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 137b05088..d40c24f96 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -532,6 +532,15 @@ int newcat_open(RIG *rig) /* Initialize rig_id in case any subsequent commands need it */ (void)newcat_get_rigid(rig); + if (priv->rig_id == NC_RIGID_FT2000) + { // then we need to readjust rfpowermeter cal table in half + int i; + for(i=0;icaps->rfpower_meter_cal.size; ++i) + { // we may need a table for the FT2000 instead of this + rig->caps->rfpower_meter_cal.table[i].raw/=2; + } + } + return RIG_OK; } diff --git a/rigs/yaesu/newcat.h b/rigs/yaesu/newcat.h index 654e22951..bf7b1dcd8 100644 --- a/rigs/yaesu/newcat.h +++ b/rigs/yaesu/newcat.h @@ -50,7 +50,7 @@ typedef char ncboolean; /* shared function version */ -#define NEWCAT_VER "20201215" +#define NEWCAT_VER "20201216" /* Hopefully large enough for future use, 128 chars plus '\0' */ #define NEWCAT_DATA_LEN 129