From 30047ecfeb05c9b9f746eab032bc023d3a915da1 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 2 Apr 2022 13:41:59 -0400 Subject: [PATCH] Another try at getting proper value for m_latestDecodeTime. --- widgets/mainwindow.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index ad61c097f..e0109dc44 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -3347,7 +3347,6 @@ void MainWindow::decodeDone () killFileTimer.start(mswait); //Kill at 3/4 period } } - if(m_mode!="FT8" or dec_data.params.nzhsym==50) m_nDecodes=0; dec_data.params.nagain=0; dec_data.params.ndiskdat=0; @@ -3366,7 +3365,16 @@ void MainWindow::decodeDone () } if((m_mode=="FT4" or m_mode=="FT8") - and m_latestDecodeTime>=0 and m_ActiveStationsWidget!=NULL) ARRL_Digi_Display(); // Update the ARRL_DIGI display + and m_latestDecodeTime>=0 and m_ActiveStationsWidget!=NULL) { + if(!m_diskData and (m_nDecodes==0)) { + m_latestDecodeTime = (QDateTime::currentMSecsSinceEpoch()/1000) % 86400; + m_latestDecodeTime = int(m_latestDecodeTime/m_TRperiod); + m_latestDecodeTime = int(m_latestDecodeTime*m_TRperiod); + } + qDebug() << "aa" << m_ihsym << m_latestDecodeTime << m_nDecodes; + ARRL_Digi_Display(); // Update the ARRL_DIGI display + } + if(m_mode!="FT8" or dec_data.params.nzhsym==50) m_nDecodes=0; } void MainWindow::ARRL_Digi_Update(DecodedText dt)