Fix Kenwood get split VFO function.

kenwood_get_split_vfo was not returning its txvfo parameter. I have
added code to calculate the TX VFO.
Hamlib-3.0
Bill Somerville 2013-11-24 21:57:45 +00:00
rodzic 18842a5cdc
commit 5e60ae88f7
1 zmienionych plików z 20 dodań i 1 usunięć

Wyświetl plik

@ -732,7 +732,26 @@ int kenwood_get_split_vfo_if(RIG *rig, vfo_t rxvfo, split_t *split, vfo_t *txvfo
/* Remember whether split is on, for kenwood_set_vfo */
priv->split = *split;
/* TODO: find where is the txvfo.. */
/* find where is the txvfo.. */
switch (priv->info[30])
{
case '0':
*txvfo = (*split) ? RIG_VFO_B : RIG_VFO_A;
break;
case '1':
*txvfo = (*split) ? RIG_VFO_A : RIG_VFO_B;
break;
case '2':
*txvfo = RIG_VFO_MEM; /* SPLIT MEM operation doesn't involve VFO A or VFO B */
break;
default:
rig_debug(RIG_DEBUG_ERR, "%s: unsupported VFO %c\n",
__func__, priv->info[30]);
return -RIG_EPROTO;
}
return RIG_OK;
}