Skip to content

Commit

Permalink
(Prepare for devel) Fix valueNoSend: Do NOT End KO Uninitialized wh…
Browse files Browse the repository at this point in the history
…en Value Conversion Failed
  • Loading branch information
cornelius-koepp committed Nov 2, 2024
1 parent a42d571 commit a7d344f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/knx/group_object/group_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -512,10 +512,12 @@ namespace Knx
if (value.size() != sizeCode())
return;

if (_uninitialized)
commFlag(Ok);

const bool encodingDone = true; // TODO FIXME for devel! value.encode needs success indicator
value.encode(_data);

// initialize on succesful conversion only
if (encodingDone && _uninitialized)
commFlag(Ok);
}

template<class DPT> bool GroupObject::valueNoSendCompare(const DPT& value)
Expand Down

0 comments on commit a7d344f

Please sign in to comment.