From 433eb45e86685e90c9baa3eb19de1202db15d6ba Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 14 Dec 2017 16:24:06 +0000 Subject: [PATCH] Enforce Tx audio ranges for Fox and Hounds. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8330 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 3419ba232..14ebc4c15 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3219,6 +3219,14 @@ void MainWindow::guiUpdate() icw[0]=m_ncw; g_iptt = 1; setRig (); + if(m_mode=="FT8" and m_config.bFox() and ui->TxFreqSpinBox->value() > 999) { + ui->TxFreqSpinBox->setValue(300); + } + if(m_mode=="FT8" and m_config.bHound() and (ui->TxFreqSpinBox->value() < 999) and + m_ntx != 3) { + int nf = (qrand() % 3000) + 1000; + ui->TxFreqSpinBox->setValue(nf); + } setXIT (ui->TxFreqSpinBox->value ()); Q_EMIT m_config.transceiver_ptt (true); //Assert the PTT