mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-02-03 09:44:24 -05:00
Correct the logic for Runaway Tx Watchdog.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3157 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
a707c246cc
commit
6cd932fada
@ -174,6 +174,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
m_freeText=false;
|
||||
m_msErase=0;
|
||||
m_sent73=false;
|
||||
m_watchdogLimit=5;
|
||||
decodeBusy(false);
|
||||
|
||||
ui->xThermo->setFillBrush(Qt::green);
|
||||
@ -1484,16 +1485,11 @@ void MainWindow::guiUpdate()
|
||||
QString t=QString::fromAscii(msgsent);
|
||||
if(t==m_msgSent0) {
|
||||
m_repeatMsg++;
|
||||
if(m_runaway and m_repeatMsg>0) {
|
||||
on_stopTxButton_clicked();
|
||||
msgBox0.setText("Runaway Tx watchdog");
|
||||
msgBox0.show();
|
||||
m_repeatMsg=0;
|
||||
}
|
||||
} else {
|
||||
m_repeatMsg=0;
|
||||
m_msgSent0=t;
|
||||
}
|
||||
|
||||
ui->xThermo->setValue(0.0); //Set Thermo to zero
|
||||
m_monitoring=false;
|
||||
soundInThread.setMonitoring(false);
|
||||
@ -1640,6 +1636,13 @@ void MainWindow::stopTx2()
|
||||
ptt(m_pttPort,0,&m_iptt,&m_COMportOpen);
|
||||
}
|
||||
if(m_73TxDisable and m_sent73) on_stopTxButton_clicked();
|
||||
|
||||
if(m_runaway and m_repeatMsg>m_watchdogLimit) {
|
||||
on_stopTxButton_clicked();
|
||||
msgBox0.setText("Runaway Tx watchdog");
|
||||
msgBox0.show();
|
||||
m_repeatMsg=0;
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::ba2msg(QByteArray ba, char message[]) //ba2msg()
|
||||
|
@ -200,6 +200,7 @@ private:
|
||||
qint32 m_iptt;
|
||||
qint32 m_band;
|
||||
qint32 m_repeatMsg;
|
||||
qint32 m_watchdogLimit;
|
||||
|
||||
bool m_monitoring;
|
||||
bool m_transmitting;
|
||||
|
Loading…
Reference in New Issue
Block a user