Backup.
This commit is contained in:
@@ -43,7 +43,7 @@ BCDriver::BCDriver(QObject* parent )
|
||||
|
||||
}
|
||||
|
||||
BCDriver::DriverState BCDriver::getState() const
|
||||
BCDriver::DriverState BCDriver::getDriverState() const
|
||||
{
|
||||
return _driverState;
|
||||
}
|
||||
@@ -64,6 +64,7 @@ void BCDriverDummy::onStartDriver()
|
||||
_driverState = DriverState::DeviceReady;
|
||||
emit driverStateChanged( DriverState::DeviceReady, "Driver Ready." );
|
||||
}
|
||||
// __Fix
|
||||
/*
|
||||
try
|
||||
{
|
||||
@@ -100,12 +101,11 @@ BCDriverDummy::BCDriverDummy( QObject* parent )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
BCDriver::TransmitResult BCDriverDummy::readRawByte( uint32_t deviceID, uint8_t registerID ) const
|
||||
{
|
||||
Q_UNUSED(deviceID)
|
||||
Q_UNUSED(registerID)
|
||||
qDebug() << " --- DriverState: " << _driverState;
|
||||
qDebug() << " --- Dummy: readRawByte:DriverState: " << getDriverState();
|
||||
uint8_t myRandomByte = static_cast<uint8_t>(QRandomGenerator::global()->bounded(256));
|
||||
return myRandomByte;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user