mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-29 15:48:38 -05:00
Do one automatic retry on CAT errors
To allow for intermittant CAT failures one retry before bringing up a message box should allow many setups to be more reliable. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4473 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
c40cec50de
commit
024c0eb616
@ -2865,6 +2865,15 @@ void MainWindow::handle_transceiver_failure (QString reason)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::rigFailure (QString const& reason, QString const& detail)
|
void MainWindow::rigFailure (QString const& reason, QString const& detail)
|
||||||
|
{
|
||||||
|
static bool first_error {true};
|
||||||
|
if (first_error)
|
||||||
|
{
|
||||||
|
// one automatic retry
|
||||||
|
QTimer::singleShot (0, this, SLOT (rigOpen ()));
|
||||||
|
first_error = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
m_rigErrorMessageBox.setText (reason);
|
m_rigErrorMessageBox.setText (reason);
|
||||||
m_rigErrorMessageBox.setDetailedText (detail);
|
m_rigErrorMessageBox.setDetailedText (detail);
|
||||||
@ -2884,6 +2893,8 @@ void MainWindow::rigFailure (QString const& reason, QString const& detail)
|
|||||||
QTimer::singleShot (0, this, SLOT (close ()));
|
QTimer::singleShot (0, this, SLOT (close ()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
first_error = true; // reset
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::transmit (double snr)
|
void MainWindow::transmit (double snr)
|
||||||
|
Loading…
Reference in New Issue
Block a user