kopia lustrzana https://github.com/Hamlib/Hamlib
Merge branch 'master' of https://github.com/mdblack98/Hamlib
commit
3d3ae1cae9
|
@ -1354,7 +1354,9 @@ int HAMLIB_API rig_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
||||||
|
|
||||||
curr_vfo = rig->state.current_vfo;
|
curr_vfo = rig->state.current_vfo;
|
||||||
retcode = caps->set_vfo(rig, vfo);
|
retcode = caps->set_vfo(rig, vfo);
|
||||||
vfo = rig->state.current_vfo; // can't call get_vfo since Icoms don't have it
|
// why is the line below here?
|
||||||
|
// it's causing set_freq on the wrong vfo
|
||||||
|
//vfo = rig->state.current_vfo; // can't call get_vfo since Icoms don't have it
|
||||||
|
|
||||||
if (retcode != RIG_OK)
|
if (retcode != RIG_OK)
|
||||||
{
|
{
|
||||||
|
@ -1995,6 +1997,7 @@ int HAMLIB_API rig_set_vfo(RIG *rig, vfo_t vfo)
|
||||||
{
|
{
|
||||||
rig->state.current_vfo = vfo;
|
rig->state.current_vfo = vfo;
|
||||||
rig->state.cache.vfo = vfo;
|
rig->state.cache.vfo = vfo;
|
||||||
|
rig_debug(RIG_DEBUG_TRACE, "%s: rig->state.current_vfo=%s\n", __func__, rig_strvfo(vfo));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue