mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
Fix valueNoSend
: Do NOT End KO Uninitialized when Value Conversion Failed
This commit is contained in:
parent
3de8903b52
commit
483d868dac
@ -282,10 +282,11 @@ void GroupObject::valueNoSend(const KNXValue& value)
|
||||
|
||||
void GroupObject::valueNoSend(const KNXValue& value, const Dpt& type)
|
||||
{
|
||||
if (_commFlagEx.uninitialized)
|
||||
commFlag(Ok);
|
||||
const bool encodingDone = KNX_Encode_Value(value, _data, _dataLength, type);
|
||||
|
||||
KNX_Encode_Value(value, _data, _dataLength, type);
|
||||
// initialize on succesful conversion only
|
||||
if (encodingDone && _commFlagEx.uninitialized)
|
||||
commFlag(Ok);
|
||||
}
|
||||
|
||||
bool GroupObject::valueNoSendCompare(const KNXValue& value, const Dpt& type)
|
||||
|
Loading…
Reference in New Issue
Block a user