1
0
mirror of https://github.com/saitohirga/WSJT-X.git synced 2025-03-23 20:48:33 -04:00

Better protection against unwanted effects caused by very late FT8 decodes.

This commit is contained in:
Uwe Risse 2023-02-28 16:05:17 +01:00
parent 0a243544d4
commit d58bd69884

View File

@ -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("<DecodeFinished>") >= 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)
{