From ece7dff7b369dd029e1369966e273d4c78fc05b5 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 5 Feb 2018 19:58:03 +0000 Subject: [PATCH] To keep calling Fox, Hound must reactivate Enable Tx at least once every 2 minutes. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8458 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index dcf0f2d97..b1bc1ecc6 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1701,8 +1701,7 @@ void MainWindow::on_autoButton_clicked (bool checked) m_bAutoReply = false; // ready for next m_bCallingCQ = true; // allows tail-enders to be picked up ui->cbFirst->setStyleSheet ("QCheckBox{color:red}"); - } - else { + } else { ui->cbFirst->setStyleSheet(""); } if (!checked) m_bCallingCQ = false; @@ -1721,6 +1720,7 @@ void MainWindow::on_autoButton_clicked (bool checked) } ui->sbTxPercent->setPalette(palette); } + m_tAutoOn=QDateTime::currentMSecsSinceEpoch()/1000; } void MainWindow::auto_tx_mode (bool state) @@ -3561,10 +3561,15 @@ void MainWindow::guiUpdate() } else { m_bVHFwarned=false; } - if(m_config.bHound()) m_bWarnedHound=false; if(m_config.my_callsign()=="SV5DKL") { Q_EMIT finished(); } + if(m_config.bHound()) { + m_bWarnedHound=false; + qint32 tHound=QDateTime::currentMSecsSinceEpoch()/1000 - m_tAutoOn; + //To keep calling, Hound must reactivate Enable Tx at least once every 2 minutes: + if(tHound >= 120) auto_tx_mode(false); + } if(m_auto and m_mode=="Echo" and m_bEchoTxOK) { progressBar.setMaximum(6); progressBar.setValue(int(m_s6));