kopia lustrzana https://github.com/Hamlib/Hamlib
Update info in riglist.h
Make check for mfg_name or model_name of Misc, Other, or Dummy for GM3ZZA's application Just to avoid ever using these accidentallypull/1590/head
rodzic
c0be98aea9
commit
8b9c768063
|
@ -26,6 +26,8 @@
|
||||||
//! @cond Doxygen_Suppress
|
//! @cond Doxygen_Suppress
|
||||||
|
|
||||||
// The rig model number is designed to fit in a 32-bit int
|
// The rig model number is designed to fit in a 32-bit int
|
||||||
|
// As of 2024-07-14 we have 39 backends defined -- need to be careful about generating new ones
|
||||||
|
// Perhaps combine them under a MISC entry should work
|
||||||
// As of 2020-02-18 we have 33 backends defined
|
// As of 2020-02-18 we have 33 backends defined
|
||||||
// With a max of 1000 models per backend we get total a model number range of 1001-33001
|
// With a max of 1000 models per backend we get total a model number range of 1001-33001
|
||||||
// This MAX was 100 prior to 2020-02-18 and Icom was close to running out of the 100 range
|
// This MAX was 100 prior to 2020-02-18 and Icom was close to running out of the 100 range
|
||||||
|
|
|
@ -2090,6 +2090,7 @@ void print_model_list()
|
||||||
|
|
||||||
for (s = models; s != NULL; s = (struct mod_lst *)(s->hh.next))
|
for (s = models; s != NULL; s = (struct mod_lst *)(s->hh.next))
|
||||||
{
|
{
|
||||||
|
|
||||||
printf("%6d %-23s%-24s%-16s%-12s%s\n",
|
printf("%6d %-23s%-24s%-16s%-12s%s\n",
|
||||||
s->id,
|
s->id,
|
||||||
s->mfg_name,
|
s->mfg_name,
|
||||||
|
@ -2097,6 +2098,20 @@ void print_model_list()
|
||||||
s->version,
|
s->version,
|
||||||
s->macro_name,
|
s->macro_name,
|
||||||
s->status);
|
s->status);
|
||||||
|
|
||||||
|
if (strcmp(s->mfg_name,"Misc") == 0
|
||||||
|
|| strcmp(s->mfg_name,"Other") == 0
|
||||||
|
|| strcmp(s->mfg_name,"Dummy") == 0)
|
||||||
|
{
|
||||||
|
printf("Do not use %s as mfg_name\n", s->mfg_name);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
|
if (strcmp(s->model_name,"Misc") == 0
|
||||||
|
|| strcmp(s->model_name,"Other") == 0)
|
||||||
|
{
|
||||||
|
printf("Do not use %s as model_name\n", s->model_name);
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue