kopia lustrzana https://github.com/Hamlib/Hamlib
Fix AGC level patch to apply only to Icom rigs and check priv non null
https://github.com/Hamlib/Hamlib/issues/1096pull/1102/head
rodzic
2b7c2ab5ce
commit
36838e2f73
|
@ -296,7 +296,7 @@ int dumpcaps(RIG *rig, FILE *fout)
|
|||
const struct icom_priv_caps *priv_caps =
|
||||
(const struct icom_priv_caps *) rig->caps->priv;
|
||||
|
||||
if (priv_caps->agc_levels_present)
|
||||
if (priv_caps && RIG_BACKEND_NUM(rig->caps->rig_model) == RIG_ICOM && priv_caps->agc_levels_present)
|
||||
{
|
||||
for (i = 0; i <= RIG_AGC_LAST && priv_caps->agc_levels[i].level != RIG_AGC_LAST
|
||||
&& priv_caps->agc_levels[i].icom_level >= 0; i++)
|
||||
|
|
Ładowanie…
Reference in New Issue