Finalize uninitialized handling

This commit is contained in:
Waldemar Porscha 2024-01-18 22:43:31 +01:00
parent efe2c46d32
commit c6368db8a3

View File

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