kopia lustrzana https://github.com/Hamlib/Hamlib
Add rfpower_meter_str for FT2000D and reuse by dividing in half for FT2000
rodzic
14ea0305b6
commit
21e6911538
|
@ -532,6 +532,15 @@ int newcat_open(RIG *rig)
|
||||||
/* Initialize rig_id in case any subsequent commands need it */
|
/* Initialize rig_id in case any subsequent commands need it */
|
||||||
(void)newcat_get_rigid(rig);
|
(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;i<rig->caps->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;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
typedef char ncboolean;
|
typedef char ncboolean;
|
||||||
|
|
||||||
/* shared function version */
|
/* shared function version */
|
||||||
#define NEWCAT_VER "20201215"
|
#define NEWCAT_VER "20201216"
|
||||||
|
|
||||||
/* Hopefully large enough for future use, 128 chars plus '\0' */
|
/* Hopefully large enough for future use, 128 chars plus '\0' */
|
||||||
#define NEWCAT_DATA_LEN 129
|
#define NEWCAT_DATA_LEN 129
|
||||||
|
|
Ładowanie…
Reference in New Issue