|
@@ -39,7 +39,7 @@ MainWindow::MainWindow(const int &frequency, QWidget *parent)
|
|
|
qint64 timestamp = QDateTime::currentMSecsSinceEpoch();
|
|
qint64 timestamp = QDateTime::currentMSecsSinceEpoch();
|
|
|
if((timestamp - recvTimestamp) >= 5000) {
|
|
if((timestamp - recvTimestamp) >= 5000) {
|
|
|
emit disconnect();
|
|
emit disconnect();
|
|
|
- LOG_INFO("data transfer interrupted");
|
|
|
|
|
|
|
+ LOG_WARN("data transfer interrupted");
|
|
|
if(!m_pErrStrLabel) {
|
|
if(!m_pErrStrLabel) {
|
|
|
QFont font;
|
|
QFont font;
|
|
|
font.setPixelSize(40);
|
|
font.setPixelSize(40);
|
|
@@ -59,10 +59,10 @@ MainWindow::MainWindow(const int &frequency, QWidget *parent)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- LOG_INFO("{} {}", timestamp, recvTimestamp);
|
|
|
|
|
|
|
+ // LOG_INFO("{} {}", timestamp, recvTimestamp);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
- m_timer.start(1000);
|
|
|
|
|
|
|
+ m_timer.start(5000);
|
|
|
|
|
|
|
|
// connect(&m_updateScreenTimer, &QTimer::timeout, this, &MainWindow::onUpdateScreen);
|
|
// connect(&m_updateScreenTimer, &QTimer::timeout, this, &MainWindow::onUpdateScreen);
|
|
|
// m_updateScreenTimer.start(1000 / m_frequency);
|
|
// m_updateScreenTimer.start(1000 / m_frequency);
|