mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-04-04 18:38:43 -04:00
Remember time of last transmission.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8279 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
a344d44fa2
commit
56675b1e2f
@ -2517,6 +2517,11 @@ void MainWindow::msgAvgDecode2()
|
||||
|
||||
void MainWindow::decode() //decode()
|
||||
{
|
||||
if( m_dateTimeLastTX.isValid () ) {
|
||||
QDateTime now = QDateTime::currentDateTime();
|
||||
qint64 isecs_since_tx = m_dateTimeLastTX.secsTo(now);
|
||||
qDebug("The last TX was %d seconds ago",isecs_since_tx);
|
||||
}
|
||||
m_msec0=QDateTime::currentMSecsSinceEpoch();
|
||||
if(!m_dataAvailable or m_TRperiod==0) return;
|
||||
ui->DecodeButton->setChecked (true);
|
||||
@ -3161,6 +3166,8 @@ void MainWindow::guiUpdate()
|
||||
if(m_tune) m_bTxTime=true; //"Tune" takes precedence
|
||||
|
||||
if(m_transmitting or m_auto or m_tune) {
|
||||
m_dateTimeLastTX = QDateTime::currentDateTime ();
|
||||
|
||||
// Check for "txboth" (testing purposes only)
|
||||
QFile f(m_appDir + "/txboth");
|
||||
if(f.exists() and
|
||||
|
@ -569,6 +569,7 @@ private:
|
||||
QSet<QString> m_sfx;
|
||||
|
||||
QDateTime m_dateTimeQSOOn;
|
||||
QDateTime m_dateTimeLastTX;
|
||||
|
||||
QSharedMemory *mem_jt9;
|
||||
LogBook m_logBook;
|
||||
|
Loading…
Reference in New Issue
Block a user