Skip to content

Commit

Permalink
Merge pull request #154 from vivien-apple/ClusterNameClusterSide
Browse files Browse the repository at this point in the history
Add clusterName and clusterSide to the clusters stored into clusterLi…
  • Loading branch information
tecimovic authored May 19, 2021
2 parents 909eb74 + 0a417a2 commit e2f34f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src-electron/generator/helper-endpointconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})`
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e2f34f8

Please sign in to comment.