mirror of
https://github.com/thelsing/knx.git
synced 2024-10-20 20:07:45 +02:00
Fix: Prevent False-Positive Change-Detection from Undefined Bits in (at least) DPT1
This commit is contained in:
parent
ee55abd2b9
commit
fd887b9df1
@ -291,7 +291,7 @@ bool GroupObject::valueNoSendCompare(const KNXValue& value, const Dpt& type)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// convert new value to given dtp
|
// convert new value to given dtp
|
||||||
uint8_t newData[_dataLength];
|
uint8_t newData[_dataLength] = {0};
|
||||||
KNX_Encode_Value(value, newData, _dataLength, type);
|
KNX_Encode_Value(value, newData, _dataLength, type);
|
||||||
|
|
||||||
// check for change in converted value / update value on change only
|
// check for change in converted value / update value on change only
|
||||||
|
Loading…
Reference in New Issue
Block a user