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
This commit is contained in:
Joe Taylor 2017-12-14 16:24:06 +00:00
parent 86a246fd33
commit 433eb45e86
1 changed files with 8 additions and 0 deletions

View File

@ -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