Fix: Prevent False-Positive Change-Detection from Undefined Bits in (at least) DPT1

This commit is contained in:
Cornelius Köpp 2023-09-18 20:23:06 +02:00
parent ee55abd2b9
commit fd887b9df1

View File

@ -291,7 +291,7 @@ bool GroupObject::valueNoSendCompare(const KNXValue& value, const Dpt& type)
else
{
// convert new value to given dtp
uint8_t newData[_dataLength];
uint8_t newData[_dataLength] = {0};
KNX_Encode_Value(value, newData, _dataLength, type);
// check for change in converted value / update value on change only