From 26557542f11a9fca5e2e992bd0dc7a29bbe26460 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Thu, 6 Jul 2023 14:13:33 +0200 Subject: [PATCH] Added test-mode. Added aux. function isSerialOpen(). --- update.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update.h b/update.h index 53c94fe..7037cf9 100644 --- a/update.h +++ b/update.h @@ -31,6 +31,7 @@ class Update : public QObject { QFile m_update_ctrl_file_copy; QString m_workingDir; bool m_maintenanceMode; + bool m_testMode; bool m_init; @@ -51,6 +52,7 @@ public: QString update_ctrl_file, QString workingDir = ".", bool maintenanceMode = false, + bool testMode = false, QObject *parent = nullptr, char const *serialInterface = SERIAL_PORT, char const *baudrate = "115200"); @@ -69,6 +71,7 @@ private: bool stopBootloader() const; bool openSerial(int br, QString baudrate, QString comPort) const; void closeSerial() const; + bool isSerialOpen() const; bool resetDeviceController() const; QByteArray loadBinaryDCFile(QString filename) const; bool downloadBinaryToDC(QString const &bFile) const;