Cosmetics.
This commit is contained in:
@@ -143,12 +143,13 @@ BCCanDriver::DriverState BCCanDriverTinyCan::initDriver()
|
|||||||
uint32_t BCCanDriverTinyCan::readRawByte( uint32_t deviceID, uint8_t registerID ) const
|
uint32_t BCCanDriverTinyCan::readRawByte( uint32_t deviceID, uint8_t registerID ) const
|
||||||
{
|
{
|
||||||
|
|
||||||
|
uint32_t myRandomByte = static_cast<uint32_t>(QRandomGenerator::global()->bounded(256));
|
||||||
|
return myRandomByte;
|
||||||
|
|
||||||
if( getState() != DriverState::Ready)
|
if( getState() != DriverState::Ready)
|
||||||
throw BCException( "readRawValue error: driver not loaded." );
|
throw BCException( "readRawValue error: driver not loaded." );
|
||||||
|
|
||||||
//uint32_t result = transmitter.readRawValue( deviceID, registerID );
|
//uint32_t result = transmitter.readRawValue( deviceID, registerID );
|
||||||
uint32_t myRandomByte = static_cast<uint32_t>(QRandomGenerator::global()->bounded(256));
|
|
||||||
return myRandomByte;
|
|
||||||
|
|
||||||
//value.fromValue<uint32_t>( myRandomByte );
|
//value.fromValue<uint32_t>( myRandomByte );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user