Reworked value handling.

This commit is contained in:
Christoph Holzheuer
2026-01-19 16:44:52 +01:00
parent 4309d2231e
commit 8639529bbe
12 changed files with 95 additions and 80 deletions

View File

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