Reworked value handling.
This commit is contained in:
@@ -144,11 +144,11 @@ void BCTransmitter::onUpdateValue( BCValuePtrConst valuePtr)
|
||||
// Kosmetik
|
||||
const BCValue& value = *(valuePtr.get());
|
||||
|
||||
uint32_t devID = static_cast<uint32_t>(value.getDeviceID());
|
||||
uint8_t regID = static_cast<uint8_t> (value.getRegisterID());
|
||||
uint32_t devID = static_cast<uint32_t>(value.deviceID());
|
||||
uint8_t regID = static_cast<uint8_t> (value.registerID());
|
||||
|
||||
// Für den Fehlerfall: Wir senden den alten Wert einfach zurück
|
||||
uint32_t newValue = value.getRawValue();
|
||||
uint32_t newValue = value.rawValue();
|
||||
BCValue::Flag newState = BCValue::Flag::Failed;
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ void BCTransmitter::onUpdateValue( BCValuePtrConst valuePtr)
|
||||
}
|
||||
}
|
||||
|
||||
emit valueUpdated( value.getDeviceID(), value.getIndexRow(), newState, newValue );
|
||||
emit valueUpdated( value.deviceID(), value.indexRow(), newState, newValue );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user