Add rfpower_meter_str for FT2000D and reuse by dividing in half for FT2000

(cherry picked from commit 21e6911538)
Hamlib-4.0
Michael Black W9MDB 2020-12-16 07:46:39 -06:00 zatwierdzone przez Nate Bargmann
rodzic 879b7f3f8a
commit b9673b7f31
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F72625E2EDBED598
2 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -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;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;
}

Wyświetl plik

@ -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