Skip to content

Commit

Permalink
Finalize uninitialized handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Waldemar Porscha committed Jan 18, 2024
1 parent efe2c46 commit c6368db
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/knx/group_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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);
}

0 comments on commit c6368db

Please sign in to comment.