File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src-electron/generator/matter/app/zap-templates/templates/app Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments