Skip to content

Commit

Permalink
Increase the size of the onoff cluster's eventControl array to handle…
Browse files Browse the repository at this point in the history
… the max dynamic enpoints count
  • Loading branch information
jmartinez-silabs committed Apr 25, 2023
1 parent 85fd5ce commit 223f391
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/clusters/on-off-server/on-off-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ using chip::Protocols::InteractionModel::Status;
static OnOffEffect * firstEffect = nullptr;
OnOffServer OnOffServer::instance;

static EmberEventControl gEventControls[EMBER_AF_ON_OFF_CLUSTER_SERVER_ENDPOINT_COUNT];
static constexpr size_t kOnOffMaxEnpointCount =
EMBER_AF_ON_OFF_CLUSTER_SERVER_ENDPOINT_COUNT + CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT;
static EmberEventControl gEventControls[kOnOffMaxEnpointCount];

/**********************************************************
* Function definition
Expand Down

0 comments on commit 223f391

Please sign in to comment.