From 5ede844bafbb2eb00db78ae094b18e629bd18d6a Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 14 Oct 2014 14:19:40 +0100 Subject: [PATCH] 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! --- tentec/orion.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tentec/orion.c b/tentec/orion.c index 8ca1eaa4a..d70342958 100644 --- a/tentec/orion.c +++ b/tentec/orion.c @@ -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]);