Skip to content

Commit 922cf28

Browse files
authored
chg: corrected order of fnc inclusions (#921)
1 parent 6583671 commit 922cf28

File tree

1 file changed

+15
-0
lines changed
  • src-electron/generator/matter/app/zap-templates/templates/app

1 file changed

+15
-0
lines changed

src-electron/generator/matter/app/zap-templates/templates/app/helper.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@ function chip_endpoint_generated_functions() {
102102
hasFunctionArray = true;
103103
}
104104

105+
if (configData.ClustersWithShutdownFunctions.includes(clusterName)) {
106+
hasFunctionArray = true;
107+
functionList = functionList.concat(
108+
` (EmberAfGenericClusterFunction) Matter${cHelper.asCamelCased(
109+
clusterName,
110+
false
111+
)}ClusterServerShutdownCallback,\\\n`
112+
);
113+
}
114+
105115
if (configData.ClustersWithPreAttributeChangeFunctions.includes(clusterName)) {
106116
functionList = functionList.concat(
107117
` (EmberAfGenericClusterFunction) Matter${cHelper.asCamelCased(
@@ -219,6 +229,11 @@ function chip_endpoint_cluster_list() {
219229
hasFunctionArray = true;
220230
}
221231

232+
if (configData.ClustersWithShutdownFunctions.includes(clusterName)) {
233+
c.mask.push('SHUTDOWN_FUNCTION');
234+
hasFunctionArray = true;
235+
}
236+
222237
if (configData.ClustersWithPreAttributeChangeFunctions.includes(clusterName)) {
223238
c.mask.push('PRE_ATTRIBUTE_CHANGED_FUNCTION');
224239
hasFunctionArray = true;

0 commit comments

Comments
 (0)