(Prepare for devel) Fix valueNoSend: Do NOT End KO Uninitialized when Value Conversion Failed

This commit is contained in:
Cornelius Köpp 2024-11-02 23:10:13 +01:00
parent a42d571356
commit a7d344fae9

View File

@ -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)