Skip to content

Commit

Permalink
Allow attribute-storage to compile even if GENERATED_CLUSTERS is not …
Browse files Browse the repository at this point in the history
…defined. (project-chip#31693)

This can happen in configurations without any fixed endpoints at all (all endpoints are dynamic).
  • Loading branch information
bzbarsky-apple authored Jan 26, 2024
1 parent 0943f8c commit a9edb72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/util/attribute-storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ constexpr const chip::EventId generatedEvents[] = GENERATED_EVENTS;
constexpr const EmberAfAttributeMetadata generatedAttributes[] = GENERATED_ATTRIBUTES;
#define ZAP_ATTRIBUTE_INDEX(index) (&generatedAttributes[index])

#ifdef GENERATED_CLUSTERS
constexpr const EmberAfCluster generatedClusters[] = GENERATED_CLUSTERS;
#define ZAP_CLUSTER_INDEX(index) (&generatedClusters[index])
#endif

constexpr const EmberAfEndpointType generatedEmberAfEndpointTypes[] = GENERATED_ENDPOINT_TYPES;
constexpr const EmberAfDeviceType fixedDeviceTypeList[] = FIXED_DEVICE_TYPES;
Expand Down

0 comments on commit a9edb72

Please sign in to comment.