Fix Ten-Tec Orion get/set split functions

The get_split_vfo function was returning inverted results.

The set_split_vfo function was ignoring the split argument!
Hamlib-3.0
Bill Somerville 2014-10-14 14:19:40 +01:00
rodzic 89ebe6bc84
commit 5ede844baf
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -465,7 +465,7 @@ int tt565_get_vfo(RIG *rig, vfo_t *vfo)
/**
* \param rig must != NULL
* \param vfo Rx vfo specifier token
* \param split (ignored - why?)
* \param split
* \param tx_vfo Tx vfo specifier token
* \returns RIG_OK or < 0
* \brief Set split operating mode
@ -479,9 +479,9 @@ int tt565_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t tx_vfo)
char cmdbuf[TT565_BUFSIZE];
cmd_len = sprintf (cmdbuf, "*KV%c%c%c" EOM,
which_vfo(rig, vfo),
'N', /* FIXME */
which_vfo(rig, tx_vfo));
which_vfo(rig, vfo),
'N', /* FIXME */
which_vfo(rig, RIG_SPLIT_ON == split ? tx_vfo : vfo));
retval = tt565_transaction (rig, cmdbuf, cmd_len, NULL, NULL);
@ -529,7 +529,7 @@ int tt565_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *tx_vfo)
return -RIG_EPROTO;
}
ttreceiver = vfo == RIG_VFO_SUB ? respbuf[3] : respbuf[4];
ttreceiver = vfo == RIG_VFO_SUB ? respbuf[4] : respbuf[3];
*tx_vfo = tt2vfo(respbuf[5]);