kopia lustrzana https://github.com/Hamlib/Hamlib
Change variable name for clarity
rodzic
2db0da54ea
commit
e54bc7e860
|
@ -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;
|
||||
int retcode, rc2;
|
||||
vfo_t curr_vfo, tx_vfo;
|
||||
vfo_t save_vfo, tx_vfo;
|
||||
|
||||
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 */
|
||||
curr_vfo = rig->state.current_vfo;
|
||||
save_vfo = rig->state.current_vfo;
|
||||
|
||||
/* Use previously setup TxVFO */
|
||||
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 */
|
||||
if (caps->set_vfo)
|
||||
{
|
||||
rc2 = caps->set_vfo(rig, curr_vfo);
|
||||
rc2 = caps->set_vfo(rig, save_vfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue