Simplified value handling.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include <QMetaEnum>
|
||||
#include <QRandomGenerator>
|
||||
|
||||
#include <bcvalue.h>
|
||||
|
||||
@@ -60,8 +61,9 @@ BCValue::BCValue(const BCValueType& valueType_, BCDevice::ID deviceID_, BC::ID r
|
||||
|
||||
void BCValue::readRawValue( const BCAbstractTransmitter& transmitter ) const
|
||||
{
|
||||
bcdata_t result = transmitter.readRawValue( deviceID, registerID );
|
||||
|
||||
//bcdata_t result = transmitter.readRawValue( deviceID, registerID );
|
||||
bcdata_t myRandomByte = static_cast<quint8>(QRandomGenerator::global()->bounded(256));
|
||||
value.fromValue<bcdata_t>( myRandomByte );
|
||||
}
|
||||
|
||||
void BCValue::writeRawValue( const BCAbstractTransmitter& transmitter ) const
|
||||
|
||||
Reference in New Issue
Block a user