Skip to content

Commit

Permalink
chg: corrected order of fnc inclusions (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
rochaferraz authored Feb 11, 2023
1 parent 6583671 commit 922cf28
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ function chip_endpoint_generated_functions() {
hasFunctionArray = true;
}

if (configData.ClustersWithShutdownFunctions.includes(clusterName)) {
hasFunctionArray = true;
functionList = functionList.concat(
` (EmberAfGenericClusterFunction) Matter${cHelper.asCamelCased(
clusterName,
false
)}ClusterServerShutdownCallback,\\\n`
);
}

if (configData.ClustersWithPreAttributeChangeFunctions.includes(clusterName)) {
functionList = functionList.concat(
` (EmberAfGenericClusterFunction) Matter${cHelper.asCamelCased(
Expand Down Expand Up @@ -219,6 +229,11 @@ function chip_endpoint_cluster_list() {
hasFunctionArray = true;
}

if (configData.ClustersWithShutdownFunctions.includes(clusterName)) {
c.mask.push('SHUTDOWN_FUNCTION');
hasFunctionArray = true;
}

if (configData.ClustersWithPreAttributeChangeFunctions.includes(clusterName)) {
c.mask.push('PRE_ATTRIBUTE_CHANGED_FUNCTION');
hasFunctionArray = true;
Expand Down

0 comments on commit 922cf28

Please sign in to comment.