kopia lustrzana https://github.com/Hamlib/Hamlib
Fix for 9700 and such for RIT=0 as they don't have XIT
rodzic
eed8d7811d
commit
68b7278a9a
|
@ -879,6 +879,9 @@ static int icom_set_it_new(RIG *rig, vfo_t vfo, shortfreq_t ts, int set_xit)
|
|||
}
|
||||
|
||||
if (ts == 0) // Turn off both RIT/XIT
|
||||
{
|
||||
if (rig->caps->has_get_func
|
||||
&& RIG_FUNC_XIT) // some rigs don't have XIT like the 9700
|
||||
{
|
||||
retval = icom_set_func(rig, vfo, RIG_FUNC_XIT, 0);
|
||||
|
||||
|
@ -886,6 +889,7 @@ static int icom_set_it_new(RIG *rig, vfo_t vfo, shortfreq_t ts, int set_xit)
|
|||
{
|
||||
return retval;
|
||||
}
|
||||
}
|
||||
|
||||
retval = icom_set_func(rig, vfo, RIG_FUNC_RIT, 0);
|
||||
}
|
||||
|
@ -5104,11 +5108,13 @@ static int set_vfo_curr(RIG *rig, vfo_t vfo, vfo_t curr_vfo)
|
|||
if (priv->curr_vfo == RIG_VFO_NONE && vfo == RIG_VFO_CURR)
|
||||
{
|
||||
rig_debug(RIG_DEBUG_TRACE, "%s: setting default as VFOA\n", __func__);
|
||||
|
||||
if (VFO_HAS_MAIN_SUB_ONLY)
|
||||
{
|
||||
retval = rig_set_vfo(rig, RIG_VFO_MAIN); // we'll default to Main in this case
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
retval = rig_set_vfo(rig, RIG_VFO_A); // we'll default to VFOA for all others
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue