From d58bd6988454a4ef6f5e0222603aca834afb73a6 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Tue, 28 Feb 2023 16:05:17 +0100 Subject: [PATCH] Better protection against unwanted effects caused by very late FT8 decodes. --- widgets/mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 880c19ff3..e32a107bf 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -3866,6 +3866,8 @@ void MainWindow::readFromStdout() //readFromStdout bool bAvgMsg=false; int navg=0; + qint64 ms = QDateTime::currentMSecsSinceEpoch() % 86400000; + double fTR=float((ms%int(1000.0*m_TRperiod)))/int(1000.0*m_TRperiod); if(line_read.indexOf("") >= 0) { m_bDecoded = line_read.mid(20).trimmed().toInt() > 0; int n=line_read.trimmed().size(); @@ -3925,6 +3927,7 @@ void MainWindow::readFromStdout() //readFromStdout } m_tBlankLine = line_read.left(ntime); } + if(m_mode=="FT8" && fTR>0.6 && fTR<0.75) decodeDone(); // Clear a hung decoder status } if ("FST4W" == m_mode) {