From dbeec73e864d45180475bd820f3393e863e32f0e Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 2 Apr 2022 13:25:25 -0400 Subject: [PATCH] Revert "Use current time rather than latest decode time for computing "age". Needs more testing!" This reverts commit 3a8991ab80cc12ae574d9beb15291461014990d7. --- widgets/mainwindow.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 047ecad7a..ad61c097f 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -3366,14 +3366,7 @@ void MainWindow::decodeDone () } if((m_mode=="FT4" or m_mode=="FT8") - and m_latestDecodeTime>=0 and m_ActiveStationsWidget!=NULL) { - if(!m_diskData) { - m_latestDecodeTime = (QDateTime::currentMSecsSinceEpoch()/1000) % 86400; - m_latestDecodeTime = int(m_latestDecodeTime/m_TRperiod); - m_latestDecodeTime = int(m_latestDecodeTime*m_TRperiod); - } - ARRL_Digi_Display(); // Update the ARRL_DIGI display - } + and m_latestDecodeTime>=0 and m_ActiveStationsWidget!=NULL) ARRL_Digi_Display(); // Update the ARRL_DIGI display } void MainWindow::ARRL_Digi_Update(DecodedText dt) @@ -3451,7 +3444,6 @@ void MainWindow::ARRL_Digi_Display() icall.next(); deCall=icall.key(); age=int((m_latestDecodeTime - icall.value().decodeTime)/m_TRperiod + 0.5); - if(age < 0) age=1; //This probably fixes most 0h UTC wrap-round problems?? int itx=1; if(icall.value().txEven) itx=0; int snr=icall.value().snr;