Added debug timer.
This commit is contained in:
2
bc.h
2
bc.h
@@ -36,9 +36,11 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QObject> // Nötig für Q_GADGET/Q_ENUM Makros
|
#include <QObject> // Nötig für Q_GADGET/Q_ENUM Makros
|
||||||
|
#include <QTime>
|
||||||
|
|
||||||
//uint8_t;
|
//uint8_t;
|
||||||
|
|
||||||
|
#define BCTimeStamp QTime::currentTime().toString("hh:mm:ss.zzz: ")
|
||||||
|
|
||||||
using namespace Qt::Literals::StringLiterals; // Für _L1
|
using namespace Qt::Literals::StringLiterals; // Für _L1
|
||||||
|
|
||||||
|
|||||||
@@ -166,16 +166,11 @@ void BCTransmitter::onUpdateValue( BCValuePtrConst valuePtr)
|
|||||||
{
|
{
|
||||||
newState = BCValue::Flag::InSync;
|
newState = BCValue::Flag::InSync;
|
||||||
newValue = result.value();
|
newValue = result.value();
|
||||||
qDebug() << " ---- Wert empfangen: " << newValue;
|
qDebug() << " ---- " << BCTimeStamp << " DevID: " << devID << " RegID: " << regID << " Value: " << newValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
emit valueUpdated( value.deviceID, value.indexRow, newState, newValue );
|
emit valueUpdated( value.deviceID, value.indexRow, newState, newValue );
|
||||||
|
|
||||||
// __fix
|
|
||||||
//bc::processEventsFor(150);
|
|
||||||
//bc::delay_millis(150);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user