Finalize uninitialized handling

This commit is contained in:
Waldemar Porscha 2024-01-18 22:43:31 +01:00 committed by Cornelius Köpp
parent e43325e42b
commit 7b8db75d5c

View File

@ -175,12 +175,12 @@ bool GroupObject::initialized()
void GroupObject::requestObjectRead()
{
_commFlagEx.commFlag = ReadRequest;
commFlag(ReadRequest);
}
void GroupObject::objectWritten()
{
_commFlagEx.commFlag = WriteRequest;
commFlag(WriteRequest);
}
size_t GroupObject::valueSize()
@ -283,10 +283,7 @@ void GroupObject::valueNoSend(const KNXValue& value)
void GroupObject::valueNoSend(const KNXValue& value, const Dpt& type)
{
if (_commFlagEx.uninitialized)
{
_commFlagEx.commFlag = Ok;
_commFlagEx.uninitialized = false;
}
commFlag(Ok);
KNX_Encode_Value(value, _data, _dataLength, type);
}