kopia lustrzana https://github.com/Hamlib/Hamlib
Fix cppcheck warning in icom.c
rodzic
fa711bb550
commit
0b3605597f
|
@ -5075,6 +5075,8 @@ int icom_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
||||||
|
|
||||||
if (retval != RIG_OK) { return retval; }
|
if (retval != RIG_OK) { return retval; }
|
||||||
|
|
||||||
|
priv->tx_vfo = RIG_VFO_A;
|
||||||
|
|
||||||
if (priv->split_on) // must have turned off satmode
|
if (priv->split_on) // must have turned off satmode
|
||||||
{
|
{
|
||||||
priv->tx_vfo = RIG_VFO_B;
|
priv->tx_vfo = RIG_VFO_B;
|
||||||
|
@ -5083,10 +5085,6 @@ int icom_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
|
||||||
{
|
{
|
||||||
priv->tx_vfo = RIG_VFO_SUB;
|
priv->tx_vfo = RIG_VFO_SUB;
|
||||||
}
|
}
|
||||||
else if (!priv->split_on) // turned off satmode
|
|
||||||
{
|
|
||||||
priv->tx_vfo = RIG_VFO_A;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
|
|
Ładowanie…
Reference in New Issue