From 3564bac8d4c8b06872cd868fbb41c713d70865b8 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 2 Feb 2024 11:07:40 +0100 Subject: [PATCH] Add reference to plugin (m_hw), so it is possible to start the download thread. --- include/datIf.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/datIf.h b/include/datIf.h index 42e442c..92154fa 100644 --- a/include/datIf.h +++ b/include/datIf.h @@ -134,7 +134,8 @@ - +class DownloadThread; +class hwinf; class T_datif : public QObject { Q_OBJECT @@ -165,13 +166,14 @@ class T_datif : public QObject T_prot *myDCIF; QTimer *datif_trigger; uint8_t selectedSlaveAddr; + hwinf *m_hw = nullptr; private slots: char datif_cycleSend(); void StoredRecData(); public: - T_datif(QObject *parent = nullptr); + T_datif(hwinf *hw, QObject *parent = nullptr); void resetChain(void); char isPortOpen(void);