From 0a417a24f09a8586122a287a9b304499e4306f7b Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Wed, 19 May 2021 18:42:34 +0200 Subject: [PATCH] Add clusterName and clusterSide to the clusters stored into clusterList for the endpoint config helper --- src-electron/generator/helper-endpointconfig.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src-electron/generator/helper-endpointconfig.js b/src-electron/generator/helper-endpointconfig.js index 00f93e9439..703ec38ea1 100644 --- a/src-electron/generator/helper-endpointconfig.js +++ b/src-electron/generator/helper-endpointconfig.js @@ -279,7 +279,10 @@ function endpoint_attribute_list(options) { } else { let defaultValue = at.defaultValue if (!littleEndian) { - defaultValue = Number(defaultValue).toString(16).padStart(6,'0x0000').padEnd(2+2*pointerSize,'0') + defaultValue = Number(defaultValue) + .toString(16) + .padStart(6, '0x0000') + .padEnd(2 + 2 * pointerSize, '0') } finalDefaultValue = `ZAP_SIMPLE_DEFAULT(${defaultValue})` } @@ -454,6 +457,8 @@ function collectAttributes(endpointTypes) { ept.clusters.forEach((c) => { let cluster = { clusterId: c.hexCode, + clusterName: c.name, + clusterSide: c.side, attributeIndex: attributeIndex, attributeCount: c.attributes.length, attributeSize: 0,