From edd93c8fc24d17a3e12009616160a7bef330c53d Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 9 Jul 2013 00:42:43 +0000 Subject: [PATCH] If "Split Tx" is not ticked, send the correct (un-shifted) audio tones. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3467 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 3 ++- soundout.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 330352509..406c7c613 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2976,7 +2976,8 @@ void MainWindow::setXIT(int n) } if(m_bSplit) ret=rig->setSplitFreq(MHz(m_dialFreq)+xit,RIG_VFO_B); } - soundOutThread.setXIT(xit); + if(m_bSplit) soundOutThread.setXIT(xit); + if(!m_bSplit) soundOutThread.setXIT(0); } void MainWindow::setFreq4(int rxFreq, int txFreq) diff --git a/soundout.cpp b/soundout.cpp index 05daf6514..8693237c4 100644 --- a/soundout.cpp +++ b/soundout.cpp @@ -216,6 +216,7 @@ void SoundOutThread::run() } udata.ntrperiod=m_TRperiod; udata.ntxfreq=m_txFreq; + udata.xit=m_xit; udata.txMute=m_txMute; udata.btune=m_tune; @@ -250,6 +251,7 @@ void SoundOutThread::setTxFreq(int n) void SoundOutThread::setXIT(int n) { m_xit=n; + } void SoundOutThread::setTxSNR(double snr)