From 8015dfea7f6519c3438dfb386199cd2098583374 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 29 Dec 2016 18:08:32 +0000 Subject: [PATCH] 1. No 2 kHz frequency offset for JT9 on 60m band. 2. Don't update the "Last Tx" message until current transmission is complete. These suggestions from W9MDB. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7429 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 5f4d3d5e8..3e93296da 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1648,6 +1648,17 @@ void MainWindow::displayDialFrequency () ui->bandComboBox->setCurrentText (band_name); m_wideGraph->setRxBand (band_name); m_lastBand = band_name; + // For 60M we'll move the JT9 offset to zero + static int saveRxRange = -1; + if (saveRxRange < 0) saveRxRange = m_wideGraph->Fmin(); + if (band_name == "60m") { + saveRxRange = m_wideGraph->Fmin(); + m_wideGraph->setRxRange(0); + + } + else { + m_wideGraph->setRxRange(saveRxRange); + } } // search working frequencies for one we are within 10kHz of (1 Mhz @@ -2819,7 +2830,6 @@ void MainWindow::guiUpdate() m_currentMessage = "TUNE"; m_currentMessageType = -1; } - last_tx_label.setText("Last Tx: " + m_currentMessage.trimmed()); if(m_restart) { QFile f {m_dataDir.absoluteFilePath ("ALL.TXT")}; if (f.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append)) @@ -3122,6 +3132,7 @@ void MainWindow::stopTx2() WSPR_scheduling (); m_ntr=0; } + last_tx_label.setText("Last Tx: " + m_currentMessage.trimmed()); } void MainWindow::ba2msg(QByteArray ba, char message[]) //ba2msg()