Skip to content

Commit 1060320

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Enable the Accessors implementations for global attributes. (#12839)
1 parent 06de972 commit 1060320

File tree

2 files changed

+14300
-7259
lines changed

2 files changed

+14300
-7259
lines changed

src/app/zap-templates/templates/app/attributes/Accessors-src.zapt

-4
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ namespace Clusters {
2020

2121
{{#zcl_clusters}}
2222
{{#zcl_attributes_server}}
23-
{{#if (hasSpecificAttributes)}}
2423
{{#first}}
2524
namespace {{asUpperCamelCase parent.label}} {
2625
namespace Attributes {
2726

2827
{{/first}}
29-
{{#if clusterRef}}
3028
{{#if_is_struct type}}
3129
{{else if (canHaveSimpleAccessors this)}}
3230
namespace {{asUpperCamelCase label}} {
@@ -133,13 +131,11 @@ EmberAfStatus Set(chip::EndpointId endpoint, const DataModel::Nullable<{{asUnder
133131
} // namespace {{asUpperCamelCase label}}
134132

135133
{{/if_is_struct}}
136-
{{/if}}
137134
{{#last}}
138135
} // namespace Attributes
139136
} // {{asUpperCamelCase parent.label}}
140137

141138
{{/last}}
142-
{{/if}}
143139
{{/zcl_attributes_server}}
144140
{{/zcl_clusters}}
145141

0 commit comments

Comments
 (0)