Mike Black W9MDB 2022-07-09 23:46:39 -05:00
rodzic e5ba9c401a
commit a331b59f5f
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -305,12 +305,14 @@ int HAMLIB_API rig_check_backend(rig_model_t rig_model)
if (rig_hash_table[i]) { ++n; } if (rig_hash_table[i]) { ++n; }
} }
#if 0 // this stopped a 2nd rig_init call with a valid model to fail -- reversing
if (n > 1) if (n > 1)
{ {
rig_debug(RIG_DEBUG_ERR, "%s: rig model %u not found and rig count=%d\n", rig_debug(RIG_DEBUG_ERR, "%s: rig model %u not found and rig count=%d\n",
__func__, rig_model, n); __func__, rig_model, n);
return -RIG_ENAVAIL; return -RIG_ENAVAIL;
} }
#endif
be_idx = rig_lookup_backend(rig_model); be_idx = rig_lookup_backend(rig_model);