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

Function dummy_open

rigs/dummy/dummy.c:364–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364static int dummy_open(RIG *rig)
365{
366 ENTERFUNC;
367
368 if (rig->caps->rig_model == RIG_MODEL_DUMMY_NOVFO)
369 {
370 // then we emulate a rig without set_vfo or get_vfo
371 rig_debug(RIG_DEBUG_VERBOSE, "%s: Emulating rig without get_vfo or set_vfo\n",
372 __func__);
373 rig->caps->set_vfo = NULL;
374 rig->caps->get_vfo = NULL;
375 }
376
377 usleep(CMDSLEEP);
378
379 RETURNFUNC(RIG_OK);
380}
381
382static int dummy_close(RIG *rig)
383{

Callers

nothing calls this directly

Calls 2

rig_debugFunction · 0.85
usleepFunction · 0.50

Tested by

no test coverage detected