Change variable name for clarity

pull/312/head
Michael Black W9MDB 2020-06-12 22:51:16 -05:00
rodzic 2db0da54ea
commit e54bc7e860
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -3006,7 +3006,7 @@ int HAMLIB_API rig_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq)
{ {
const struct rig_caps *caps; const struct rig_caps *caps;
int retcode, rc2; int retcode, rc2;
vfo_t curr_vfo, tx_vfo; vfo_t save_vfo, tx_vfo;
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
@ -3029,7 +3029,7 @@ int HAMLIB_API rig_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq)
} }
/* Assisted mode */ /* Assisted mode */
curr_vfo = rig->state.current_vfo; save_vfo = rig->state.current_vfo;
/* Use previously setup TxVFO */ /* Use previously setup TxVFO */
if (vfo == RIG_VFO_CURR || vfo == RIG_VFO_TX) if (vfo == RIG_VFO_CURR || vfo == RIG_VFO_TX)
@ -3081,7 +3081,7 @@ int HAMLIB_API rig_get_split_freq(RIG *rig, vfo_t vfo, freq_t *tx_freq)
/* try and revert even if we had an error above */ /* try and revert even if we had an error above */
if (caps->set_vfo) if (caps->set_vfo)
{ {
rc2 = caps->set_vfo(rig, curr_vfo); rc2 = caps->set_vfo(rig, save_vfo);
} }
else else
{ {