Skip to content

Commit af657c4

Browse files
rus084tecimovic
authored andcommitted
zcl loader dotdot manufacturerCode and struct array element implementation
1 parent eb5b44f commit af657c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src-electron/zcl/zcl-loader-dotdot.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function prepareCluster(cluster, types, isExtension = false) {
380380
//ret.description = '' // TODO: no description in dotdot zcl
381381
ret.define = cluster.$.name // TODO: no define in dotdot zcl
382382
ret.domain = cluster.classification[0].$.role
383-
//ret.manufacturerCode = '' // TODO: no manufacturer code in dotdot zcl
383+
ret.manufacturerCode = parseInt(normalizeHexValue(cluster.$.manufacturer))
384384
ret.revision = cluster.$.revision
385385
ret.isSingleton = false // TODO: dotdot is not supporting singletons
386386
}
@@ -534,6 +534,7 @@ function prepareStruct(type) {
534534
name: field.$.name,
535535
type: field.$.type,
536536
fieldIdentifier: index + 1,
537+
array: field.$.array,
537538
})
538539
})
539540
})

0 commit comments

Comments
 (0)