mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-01 17:46:55 -04: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_freeText=false;
|
||||||
m_msErase=0;
|
m_msErase=0;
|
||||||
m_sent73=false;
|
m_sent73=false;
|
||||||
|
m_watchdogLimit=5;
|
||||||
decodeBusy(false);
|
decodeBusy(false);
|
||||||
|
|
||||||
ui->xThermo->setFillBrush(Qt::green);
|
ui->xThermo->setFillBrush(Qt::green);
|
||||||
@ -1484,16 +1485,11 @@ void MainWindow::guiUpdate()
|
|||||||
QString t=QString::fromAscii(msgsent);
|
QString t=QString::fromAscii(msgsent);
|
||||||
if(t==m_msgSent0) {
|
if(t==m_msgSent0) {
|
||||||
m_repeatMsg++;
|
m_repeatMsg++;
|
||||||
if(m_runaway and m_repeatMsg>0) {
|
|
||||||
on_stopTxButton_clicked();
|
|
||||||
msgBox0.setText("Runaway Tx watchdog");
|
|
||||||
msgBox0.show();
|
|
||||||
m_repeatMsg=0;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
m_repeatMsg=0;
|
m_repeatMsg=0;
|
||||||
m_msgSent0=t;
|
m_msgSent0=t;
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->xThermo->setValue(0.0); //Set Thermo to zero
|
ui->xThermo->setValue(0.0); //Set Thermo to zero
|
||||||
m_monitoring=false;
|
m_monitoring=false;
|
||||||
soundInThread.setMonitoring(false);
|
soundInThread.setMonitoring(false);
|
||||||
@ -1640,6 +1636,13 @@ void MainWindow::stopTx2()
|
|||||||
ptt(m_pttPort,0,&m_iptt,&m_COMportOpen);
|
ptt(m_pttPort,0,&m_iptt,&m_COMportOpen);
|
||||||
}
|
}
|
||||||
if(m_73TxDisable and m_sent73) on_stopTxButton_clicked();
|
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()
|
void MainWindow::ba2msg(QByteArray ba, char message[]) //ba2msg()
|
||||||
|
@ -200,6 +200,7 @@ private:
|
|||||||
qint32 m_iptt;
|
qint32 m_iptt;
|
||||||
qint32 m_band;
|
qint32 m_band;
|
||||||
qint32 m_repeatMsg;
|
qint32 m_repeatMsg;
|
||||||
|
qint32 m_watchdogLimit;
|
||||||
|
|
||||||
bool m_monitoring;
|
bool m_monitoring;
|
||||||
bool m_transmitting;
|
bool m_transmitting;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[Setup]
|
[Setup]
|
||||||
AppName=wsjtx
|
AppName=wsjtx
|
||||||
AppVerName=wsjtx Version 0.9 r3155
|
AppVerName=wsjtx Version 0.9 r3157
|
||||||
AppCopyright=Copyright (C) 2001-2013 by Joe Taylor, K1JT
|
AppCopyright=Copyright (C) 2001-2013 by Joe Taylor, K1JT
|
||||||
DefaultDirName=c:\wsjtx
|
DefaultDirName=c:\wsjtx
|
||||||
DefaultGroupName=wsjtx
|
DefaultGroupName=wsjtx
|
||||||
|
Loading…
Reference in New Issue
Block a user