kopia lustrzana https://github.com/Hamlib/Hamlib
For Icom get_vfo make the same change as last commit for other Icom rigs
https://github.com/Hamlib/Hamlib/issues/806pull/816/head
rodzic
3a76cb1b40
commit
8399b4b4dc
|
@ -876,6 +876,15 @@ static vfo_t icom_current_vfo(RIG *rig)
|
|||
|
||||
if (fCurr == f2)
|
||||
{
|
||||
if (priv->vfo_flag != 0)
|
||||
{
|
||||
// we can't change freqs unless rig is idle and we don't know that
|
||||
// so we only check vfo once when freqs are equal
|
||||
rig_debug(RIG_DEBUG_TRACE,"%s: vfo already determined...returning current_vfo", __func__);
|
||||
return rig->state.current_vfo;
|
||||
}
|
||||
priv->vfo_flag = 1;
|
||||
|
||||
fOffset = 100;
|
||||
rig_set_freq(rig, RIG_VFO_CURR, fCurr + fOffset);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue