From 1009d87ab48abaf429c2f32eb897b5c1c4743400 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 10 Jan 2017 01:39:27 +0000 Subject: [PATCH] Do not do FreqCal calculations on period when rig changes frequency git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7471 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 513028c7d..6982a187f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1140,7 +1140,10 @@ void MainWindow::dataSink(qint64 frames) } fixStop(); - if(m_mode=="FreqCal" and m_ihsym>=16 and m_ihsym%8==0) { + if (m_mode == "FreqCal" + // only calculate after 1st chunk, also skip chunk where rig + // changed frequency + && !(m_ihsym % 8) && m_ihsym > 8 && m_ihsym <= 96) { int RxFreq=ui->RxFreqSpinBox->value (); int nkhz=(m_freqNominal+RxFreq)/1000; freqcal_(&dec_data.d2[0],&k,&nkhz,&RxFreq,&m_Ftol,&line[0],80);