From 3d3c0213b5663700ef9f48d3bcf9ec267a7d7552 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sun, 9 Jul 2017 22:54:26 +0000 Subject: [PATCH] Better logic for 'Call first' feature. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7828 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 9e9e7d6d2..3bf136611 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2721,21 +2721,22 @@ void MainWindow::readFromStdout() //readFromStdout //Right (Rx Frequency) window bool bDisplayRight=bAvgMsg; - int audioFreq=decodedtext.frequencyOffset(); - if(!m_config.enable_VHF_features() and - (abs(audioFreq - m_wideGraph->rxFreq()) <= 10)) bDisplayRight=true; + if(m_mode=="FT8") { - audioFreq=decodedtext.string().mid(16,4).toInt(); int i1=decodedtext.string().indexOf(" "+m_baseCall+" "); - m_bCallingCQ=true; +// m_bCallingCQ=true; if(m_bCallingCQ and i1>0 and ui->cbFirst->isChecked()) { // int snr=decodedtext.string().mid(6,4).toInt(); m_bDoubleClicked=true; processMessage(decodedtext.string(),43,false); m_bCallingCQ=false; + } else { + int audioFreq=decodedtext.frequencyOffset(); + audioFreq=decodedtext.string().mid(16,4).toInt(); + if(!m_config.enable_VHF_features() and + (abs(audioFreq - m_wideGraph->rxFreq()) <= 10)) bDisplayRight=true; } } - if (bDisplayRight) { // This msg is within 10 hertz of our tuned frequency, or a JT4 or JT65 avg ui->decodedTextBrowser2->displayDecodedText(decodedtext,m_baseCall,false,