Simplified value handling.
This commit is contained in:
@@ -108,12 +108,28 @@ void BCTransmitter::processValueOp( BC::OpID opID )
|
||||
|
||||
bcdata_t BCTransmitter::readRawValue( BCDevice::ID deviceID, BC::ID registerID ) const
|
||||
{
|
||||
return _canDriver.readRawValue( deviceID, registerID );
|
||||
try
|
||||
{
|
||||
return _canDriver.readRawValue( deviceID, registerID );
|
||||
}
|
||||
catch ( BCException& exception )
|
||||
{
|
||||
qDebug() << " -- OUCH: read exception: " << exception.what();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void BCTransmitter::writeRawValue( BCDevice::ID deviceID, BC::ID registerID, bcdata_t value ) const
|
||||
{
|
||||
try
|
||||
{
|
||||
_canDriver.writeRawValue( deviceID, registerID, value );
|
||||
}
|
||||
catch ( BCException& exception )
|
||||
{
|
||||
qDebug() << " -- OUCH: write exception: " << exception.what();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user