kopia lustrzana https://github.com/Hamlib/Hamlib
Initialize rig->state_depth and remove one debug statement
rodzic
1c2033c17f
commit
c5937b23e5
|
@ -567,6 +567,7 @@ RIG *HAMLIB_API rig_init(rig_model_t rig_model)
|
||||||
rs->rigport.fd = -1;
|
rs->rigport.fd = -1;
|
||||||
rs->pttport.fd = -1;
|
rs->pttport.fd = -1;
|
||||||
rs->comm_state = 0;
|
rs->comm_state = 0;
|
||||||
|
rig->state.depth = 1;
|
||||||
#if 0 // extra debug if needed
|
#if 0 // extra debug if needed
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s(%d): %p rs->comm_state==0?=%d\n", __func__,
|
rig_debug(RIG_DEBUG_VERBOSE, "%s(%d): %p rs->comm_state==0?=%d\n", __func__,
|
||||||
__LINE__, &rs->comm_state,
|
__LINE__, &rs->comm_state,
|
||||||
|
@ -1352,7 +1353,6 @@ int HAMLIB_API rig_open(RIG *rig)
|
||||||
/*
|
/*
|
||||||
* trigger state->current_vfo first retrieval
|
* trigger state->current_vfo first retrieval
|
||||||
*/
|
*/
|
||||||
HAMLIB_TRACE;
|
|
||||||
|
|
||||||
if (caps->get_vfo && rig_get_vfo(rig, &rs->current_vfo) == RIG_OK)
|
if (caps->get_vfo && rig_get_vfo(rig, &rs->current_vfo) == RIG_OK)
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue