Use writeCount instaed of readCmds.

This commit is contained in:
Gerhard Hoffmann 2024-10-16 13:01:41 +02:00
parent ca2d9e1b5a
commit d540f1b467

View File

@ -33,9 +33,7 @@ class T_com : public QObject //, public QPlainTextEdit
// QSerialPort *CatSerial = nullptr; // QSerialPort *CatSerial = nullptr;
QSerialPort *CatSerial; QSerialPort *CatSerial;
QVector<uint16_t> readCmds; // list of active commands sent to DC uint32_t writeCount = 0;
//char oeffneSerialPort(); //char oeffneSerialPort();
char open_Serial_Port(); char open_Serial_Port();
@ -66,8 +64,7 @@ public:
bool readFromSerial(QByteArray &data, uint16_t &sendLength); bool readFromSerial(QByteArray &data, uint16_t &sendLength);
// retval: true: data available // retval: true: data available
QVector<uint16_t> &getReadCmds() { return readCmds; } uint32_t getWriteCount() { return writeCount; }
QVector<uint16_t> const &getReadCmds() const { return readCmds; }
/* /*
uint8_t getAllPortPins(void); uint8_t getAllPortPins(void);