Fix retcode compilation warning

pull/739/head
Mike Black W9MDB 2021-06-13 16:18:46 -05:00
rodzic 9ff92fa5ec
commit 7b1ad09aed
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -2627,7 +2627,7 @@ int HAMLIB_API rig_set_vfo(RIG *rig, vfo_t vfo)
if (retcode == RIG_OK)
{
vfo = rig->state.current_vfo; // vfo may change in the rig backend
//vfo = rig->state.current_vfo; // vfo may change in the rig backend
rig->state.cache.vfo = vfo;
elapsed_ms(&rig->state.cache.time_vfo, HAMLIB_ELAPSED_SET);
rig_debug(RIG_DEBUG_TRACE, "%s: rig->state.current_vfo=%s\n", __func__,
@ -4544,6 +4544,7 @@ int HAMLIB_API rig_get_split_vfo(RIG *rig,
|| vfo == rig->state.current_vfo)
{
TRACE;
retcode = RIG_OK;
if (rig->caps->rig_model != RIG_MODEL_NETRIGCTL)
{ // rigctld doesn't like nested calls
retcode = caps->get_split_vfo(rig, vfo, split, tx_vfo);