From 6b28068c4d0ff362d9d68571cb5d57a5eb81c4e1 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 21 Feb 2018 16:34:02 +0000 Subject: [PATCH] Don't transmit all-blank messages. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8518 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 7d170fc83..766ba907d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3294,8 +3294,8 @@ void MainWindow::guiUpdate() int nf = (qrand() % 2000) + 1000; // Hound randomized range: 1000-3000 Hz ui->TxFreqSpinBox->setValue(nf); } - setXIT (ui->TxFreqSpinBox->value ()); + setXIT (ui->TxFreqSpinBox->value ()); Q_EMIT m_config.transceiver_ptt (true); //Assert the PTT m_tx_when_ready = true; } @@ -3680,6 +3680,7 @@ void MainWindow::guiUpdate() void MainWindow::startTx2() { + if(m_currentMessage.trimmed().length()==0) return; //Don't transmit blank messages. if (!m_modulator->isActive ()) { // TODO - not thread safe double fSpread=0.0; double snr=99.0; @@ -6439,7 +6440,7 @@ void MainWindow::on_sbSubmode_valueChanged(int n) ui->sbTR->setVisible(m_bFast9); if(m_bFast9) ui->TxFreqSpinBox->setValue(700); } - if(m_transmitting and m_bFast9 and m_nSubMode>=4) transmit(99.0); + if(m_transmitting and m_bFast9 and m_nSubMode>=4) transmit (99.0); statusUpdate (); }