mirror of
https://github.com/thelsing/knx.git
synced 2026-02-23 13:50:35 +01:00
initialize data to zero when creating a groupobject
This commit is contained in:
@@ -124,6 +124,7 @@ bool GroupObjectTableObject::initGroupObjects()
|
||||
|
||||
go._dataLength = go.goSize();
|
||||
go._data = new uint8_t[go._dataLength];
|
||||
memset(go._data, 0, go._dataLength);
|
||||
|
||||
if (go.valueReadOnInit())
|
||||
go.requestObjectRead();
|
||||
|
||||
Reference in New Issue
Block a user