mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-13 03:52:26 -04:00
Echo-mode UTC should be that at start of Echo or Monitor cycle.
This commit is contained in:
parent
2b15f0bf0f
commit
1d8d6cf2ce
@ -1623,7 +1623,13 @@ void MainWindow::dataSink(qint64 frames)
|
|||||||
if(m_diskData) {
|
if(m_diskData) {
|
||||||
t0=t0.asprintf("%06d ",m_UTCdisk);
|
t0=t0.asprintf("%06d ",m_UTCdisk);
|
||||||
} else {
|
} else {
|
||||||
t0=QDateTime::currentDateTimeUtc().toString("hhmmss ");
|
QDateTime now=QDateTime::currentDateTimeUtc();
|
||||||
|
int ihr=now.toString("hh").toInt();
|
||||||
|
int imin=now.toString("mm").toInt();
|
||||||
|
int isec=now.toString("ss").toInt();
|
||||||
|
if(m_auto) isec=isec - isec%6;
|
||||||
|
if(!m_auto) isec=isec - isec%3;
|
||||||
|
t0=t0.asprintf("%02d%02d%02d",ihr,imin,isec);
|
||||||
}
|
}
|
||||||
int n=t0.toInt();
|
int n=t0.toInt();
|
||||||
int nsec=((n/10000)*3600) + (((n/100)%100)*60) + (n%100);
|
int nsec=((n/10000)*3600) + (((n/100)%100)*60) + (n%100);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user