From a6f6554270049f32310a948020a71e2f65106959 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 5 Feb 2018 20:13:16 +0000 Subject: [PATCH] Minimize useless late starts of transmissions. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8459 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 7 ++++--- mainwindow.h | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index b1bc1ecc6..e7c233fcb 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3257,8 +3257,9 @@ void MainWindow::guiUpdate() } float fTR=float((nsec%m_TRperiod))/m_TRperiod; -// if(g_iptt==0 and ((m_bTxTime and fTR<0.4) or m_tune )) { - if(g_iptt==0 and ((m_bTxTime and fTR<99) or m_tune )) { //### Allow late starts + float fTRmax=0.6; + if(m_config.bHound()) fTRmax=0.07; + if(g_iptt==0 and ((m_bTxTime and fTR= 120) auto_tx_mode(false); } if(m_auto and m_mode=="Echo" and m_bEchoTxOK) { diff --git a/mainwindow.h b/mainwindow.h index 710ee5540..0898ba252 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -428,6 +428,7 @@ private: qint32 m_Nlist=12; qint32 m_Nslots=5; qint32 m_nFoxMsgTimes[5]={0,0,0,0,0}; + qint32 m_tAutoOn; bool m_btxok; //True if OK to transmit bool m_diskData;