From ca4d83a6dc75e130b00ad57a01e1c582ad8746db Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 9 Mar 2018 14:32:14 +0000 Subject: [PATCH] Bug fix: only Fox (=DxCall) should be able to trigger a Hound Tx3 transmission. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8549 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 309577f8e..e69298905 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2992,13 +2992,16 @@ void MainWindow::readFromStdout() //readFromStdout auto_tx_mode(false); on_logQSOButton_clicked(); } else { - m_rptRcvd=w.at(2); - m_rptSent=decodedtext.string().mid(7,3); - //### Select TX3, set random TxFreq in [300-900], and Force Auto ON. ### - ui->txrb3->setChecked(true); - int fTx = 300.0 + 600.0*double(qrand())/RAND_MAX; - ui->TxFreqSpinBox->setValue(fTx); - if(!m_auto) auto_tx_mode(true); + if(w.at(1)==Radio::base_callsign(ui->dxCallEntry->text()) and + (w.at(2).mid(0,1)=="+" or w.at(2).mid(0,1)=="-")) { + m_rptRcvd=w.at(2); + m_rptSent=decodedtext.string().mid(7,3); + //### Select TX3, set random TxFreq in [300-900], and Force Auto ON. ### + ui->txrb3->setChecked(true); + int fTx = 300.0 + 600.0*double(qrand())/RAND_MAX; + ui->TxFreqSpinBox->setValue(fTx); + if(!m_auto) auto_tx_mode(true); + } } } }