mirror of
https://github.com/thelsing/knx.git
synced 2025-03-08 00:16:06 +01:00
initialize data to zero when creating a groupobject
This commit is contained in:
parent
dfec99ea3a
commit
3a916905d6
@ -124,6 +124,7 @@ bool GroupObjectTableObject::initGroupObjects()
|
|||||||
|
|
||||||
go._dataLength = go.goSize();
|
go._dataLength = go.goSize();
|
||||||
go._data = new uint8_t[go._dataLength];
|
go._data = new uint8_t[go._dataLength];
|
||||||
|
memset(go._data, 0, go._dataLength);
|
||||||
|
|
||||||
if (go.valueReadOnInit())
|
if (go.valueReadOnInit())
|
||||||
go.requestObjectRead();
|
go.requestObjectRead();
|
||||||
|
Loading…
Reference in New Issue
Block a user