MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / rig_probe_first

Function rig_probe_first

src/register.c:484–505  ·  view source on GitHub ↗

* rig_probe_first * called straight by rig_probe */ @cond Doxygen_Suppress

Source from the content-addressed store, hash-verified

482 */
483//! @cond Doxygen_Suppress
484rig_model_t rig_probe_first(hamlib_port_t *p)
485{
486 int i;
487 rig_model_t model;
488
489 for (i = 0; i < RIG_BACKEND_MAX && rig_backend_list[i].be_name; i++)
490 {
491 if (rig_backend_list[i].be_probe_all)
492 {
493 model = (*rig_backend_list[i].be_probe_all)(p, dummy_rig_probe,
494 (rig_ptr_t)NULL);
495
496 /* stop at first one found */
497 if (model != RIG_MODEL_NONE)
498 {
499 return model;
500 }
501 }
502 }
503
504 return RIG_MODEL_NONE;
505}
506//! @endcond
507
508

Callers 1

rig_probeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected