ad timer to update tool 60min max / 30min per Step

This commit is contained in:
2026-10-08 12:53:32 +02:00
parent 6bc3345ee8
commit ccb0bc4217
4 changed files with 107 additions and 12 deletions
+10
View File
@@ -11,6 +11,7 @@
#include <QMap>
#include <QDebug>
#include <QThread>
#include <QElapsedTimer>
#include <optional>
#include <initializer_list>
@@ -19,6 +20,7 @@
#include "ismas/ismas_client.h"
#include "utils.h"
#ifdef PTU5
#define SERIAL_PORT "ttymxc2"
#else
@@ -141,6 +143,14 @@ class hwinf;
class Worker : public QThread{
Q_OBJECT
private:
static constexpr qint64 UPDATE_MAX_RUNTIME_MS =
60LL * 60LL * 1000LL; // 60 minutes
QElapsedTimer m_updateRuntime;
public:
bool updateTimedOut() const;
int const m_customerNr;
QString const m_customerNrStr;
int const m_machineNr;