From 9daa5e17cbc59784a3f4c9fafa3af154c031bbc1 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 15 Oct 2024 09:54:09 +0200 Subject: [PATCH] Introduce a vector of commands currently sent to device controller. --- include/com.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/com.h b/include/com.h index 0cee78d..379d739 100644 --- a/include/com.h +++ b/include/com.h @@ -7,6 +7,7 @@ //#include #include #include +#include #include "tslib.h" #include "controlBus.h" #include "interfaces.h" @@ -32,6 +33,10 @@ class T_com : public QObject //, public QPlainTextEdit // QSerialPort *CatSerial = nullptr; QSerialPort *CatSerial; + QVector readCmds; // list of active commands sent to DC + + + //char oeffneSerialPort(); char open_Serial_Port(); void closeSerialPort(); @@ -61,6 +66,9 @@ public: bool readFromSerial(QByteArray &data, uint16_t &sendLength); // retval: true: data available + QVector &getReadCmds() { return readCmds; } + QVector const &getReadCmds() const { return readCmds; } + /* uint8_t getAllPortPins(void); // rs232pins: all signals bitwise coded in one byte: