This commit is contained in:
2026-01-01 23:01:31 +01:00
parent a3dac8e4f8
commit dce792e00d
7 changed files with 49 additions and 86 deletions

View File

@@ -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;
}