Fix rot_conf.c get_conf calls

https://github.com/Hamlib/Hamlib/issues/857
pull/943/head
Mike Black W9MDB 2022-01-18 12:46:29 -06:00
rodzic ea6f0bdff6
commit e69ad3786d
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -779,12 +779,16 @@ int HAMLIB_API rot_get_conf2(ROT *rot, token_t token, char *val, int val_len)
return frontrot_get_conf(rot, token, val, val_len); return frontrot_get_conf(rot, token, val, val_len);
} }
if (rot->caps->get_conf2)
{
return rot->caps->get_conf2(rot, token, val, val_len);
}
if (rot->caps->get_conf == NULL) if (rot->caps->get_conf == NULL)
{ {
return -RIG_ENAVAIL; return -RIG_ENAVAIL;
} }
return rot->caps->get_conf2(rot, token, val, val_len); return rot->caps->get_conf(rot, token, val);
} }
/** @} */ /** @} */