Fix cppcheck warning in icom.c

pull/252/head
mdblack98 2020-05-05 22:20:33 -05:00
rodzic fa711bb550
commit 0b3605597f
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -5075,6 +5075,8 @@ int icom_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
if (retval != RIG_OK) { return retval; }
priv->tx_vfo = RIG_VFO_A;
if (priv->split_on) // must have turned off satmode
{
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;
}
else if (!priv->split_on) // turned off satmode
{
priv->tx_vfo = RIG_VFO_A;
}
}
return RIG_OK;