Initialize rig->state_depth and remove one debug statement

pull/1322/head
Mike Black W9MDB 2023-06-20 08:07:32 -05:00
rodzic 1c2033c17f
commit c5937b23e5
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -567,6 +567,7 @@ RIG *HAMLIB_API rig_init(rig_model_t rig_model)
rs->rigport.fd = -1;
rs->pttport.fd = -1;
rs->comm_state = 0;
rig->state.depth = 1;
#if 0 // extra debug if needed
rig_debug(RIG_DEBUG_VERBOSE, "%s(%d): %p rs->comm_state==0?=%d\n", __func__,
__LINE__, &rs->comm_state,
@ -1352,7 +1353,6 @@ int HAMLIB_API rig_open(RIG *rig)
/*
* trigger state->current_vfo first retrieval
*/
HAMLIB_TRACE;
if (caps->get_vfo && rig_get_vfo(rig, &rs->current_vfo) == RIG_OK)
{