Simplified value handling.

This commit is contained in:
2025-12-21 20:46:16 +01:00
parent e3c26ffa34
commit 59f6137bbe
5 changed files with 31 additions and 14 deletions

View File

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