mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 13:48:42 -05:00
Use current time rather than latest decode time for computing "age". Needs more testing!
This commit is contained in:
parent
95f75c8e49
commit
3a8991ab80
@ -3366,7 +3366,14 @@ 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) {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::ARRL_Digi_Update(DecodedText dt)
|
||||
@ -3444,6 +3451,7 @@ 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;
|
||||
|
Loading…
Reference in New Issue
Block a user