Made 'syncFromDevice' work again.

This commit is contained in:
2025-12-28 22:48:18 +01:00
parent 517dcceb81
commit b7d4441d56
20 changed files with 167 additions and 916 deletions

View File

@@ -38,7 +38,7 @@
#include <QMutex>
#include <atomic>
#include <bcdatavalue.h>
#include <bcvalue.h>
#include <bccandrivertinycan.h>
// template ...
@@ -56,17 +56,17 @@ public:
public slots:
void onToggleConnectionState( bool connect );
void enqueueValueOp(BC::OpID opID, const BCDataValue* value );
void enqueueValueOp(BC::OpID opID, const BCValue* value );
void processValueOp(BC::OpID opID);
signals:
void commandFinished(int id, bool success);
void valueUpdated(BCDevice::ID deviceID, int index, BC::State state, const QString& newValue="" );
void messageLogged(const QString& msg);
private:
using BCDataQueue = QQueue<const BCDataValue*>;
using BCDataQueue = QQueue<const BCValue*>;
BCDataQueue _valueQueue;
QMutex _mutex;