From d540f1b467064af143b1cadd6bac810d66ba136f Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 16 Oct 2024 13:01:41 +0200 Subject: [PATCH] Use writeCount instaed of readCmds. --- include/com.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/com.h b/include/com.h index 379d739..1684b80 100644 --- a/include/com.h +++ b/include/com.h @@ -33,9 +33,7 @@ class T_com : public QObject //, public QPlainTextEdit // QSerialPort *CatSerial = nullptr; QSerialPort *CatSerial; - QVector readCmds; // list of active commands sent to DC - - + uint32_t writeCount = 0; //char oeffneSerialPort(); char open_Serial_Port(); @@ -66,8 +64,7 @@ public: bool readFromSerial(QByteArray &data, uint16_t &sendLength); // retval: true: data available - QVector &getReadCmds() { return readCmds; } - QVector const &getReadCmds() const { return readCmds; } + uint32_t getWriteCount() { return writeCount; } /* uint8_t getAllPortPins(void);