From 8f9daaa0e9d1e7403e51de0f4796418ce44cffa6 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 2 Nov 2016 12:38:18 +0000 Subject: [PATCH] Fix UTC wrap-around problem with timing of CW ID. Fix WSPR label mi/km. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7276 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index dbf21e7d2..51064447a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2855,10 +2855,10 @@ void MainWindow::guiUpdate() auto_tx_mode (false); } -// if(m_config.id_interval () >0 and (!m_bFastMode)) { if(m_config.id_interval () >0) { int nmin=(m_sec0-m_secID)/60; - if(nmin >= m_config.id_interval ()) { + if(m_sec0= m_config.id_interval()) { icw[0]=m_ncw; m_secID=m_sec0; } @@ -4363,8 +4363,10 @@ void MainWindow::WSPR_config(bool b) ui->logQSOButton->setVisible(!b); ui->DecodeButton->setEnabled(!b); if(b and (m_mode!="Echo")) { - ui->decodedTextLabel->setText( - "UTC dB DT Freq Drift Call Grid dBm km"); + QString t="UTC dB DT Freq Drift Call Grid dBm "; + if(m_config.miles()) t += " mi"; + if(!m_config.miles()) t += " km"; + ui->decodedTextLabel->setText(t); if (m_config.is_transceiver_online ()) { Q_EMIT m_config.transceiver_tx_frequency (0); // turn off split }