Fix regsiter.c so c++ make check works

Another solution to this needed
https://github.com/Hamlib/Hamlib/issues/735
pull/739/head
Mike Black W9MDB 2021-07-08 11:56:10 -05:00
rodzic cc089335b0
commit 53adea283c
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -257,10 +257,12 @@ static int rig_lookup_backend(rig_model_t rig_model)
{
int i;
//if (rig_model >= 1000) rig_model = RIG_BACKEND_NUM(rig_model);
for (i = 0; i < RIG_BACKEND_MAX && rig_backend_list[i].be_name; i++)
{
if (rig_model ==
rig_backend_list[i].be_num*1000)
if (RIG_BACKEND_NUM(rig_model) ==
rig_backend_list[i].be_num)
{
return i;
}