Skip to content

Commit

Permalink
Fix: Prevent False-Positive Change-Detection from Undefined Bits in (…
Browse files Browse the repository at this point in the history
…at least) DPT1
  • Loading branch information
cornelius-koepp committed Jan 7, 2024
1 parent ee55abd commit fd887b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/knx/group_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd887b9

Please sign in to comment.