mirror of
https://github.com/thelsing/knx.git
synced 2025-04-23 01:16:29 +02:00
(Prepare for devel) Fix valueNoSend
: Do NOT End KO Uninitialized when Value Conversion Failed
This commit is contained in:
parent
a42d571356
commit
a7d344fae9
@ -512,10 +512,12 @@ namespace Knx
|
|||||||
if (value.size() != sizeCode())
|
if (value.size() != sizeCode())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (_uninitialized)
|
const bool encodingDone = true; // TODO FIXME for devel! value.encode needs success indicator
|
||||||
commFlag(Ok);
|
|
||||||
|
|
||||||
value.encode(_data);
|
value.encode(_data);
|
||||||
|
|
||||||
|
// initialize on succesful conversion only
|
||||||
|
if (encodingDone && _uninitialized)
|
||||||
|
commFlag(Ok);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class DPT> bool GroupObject::valueNoSendCompare(const DPT& value)
|
template<class DPT> bool GroupObject::valueNoSendCompare(const DPT& value)
|
||||||
|
Loading…
Reference in New Issue
Block a user