components/esp_matter: mode_select missing entries

The `cluster::mode_select::create()` API was missing an entry in function_list and function_flags.
This caused a crash when ChangeToMode command was sent to the cluster.
This commit is contained in:
Dhaval Gujar
2025-10-17 21:34:19 +05:30
parent df2d160072
commit 6e1bfabcd9
@@ -2606,8 +2606,9 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
namespace mode_select {
const function_generic_t function_list[] = {
(function_generic_t)emberAfModeSelectClusterServerInitCallback,
(function_generic_t)MatterModeSelectClusterServerPreAttributeChangedCallback,
};
const int function_flags = CLUSTER_FLAG_INIT_FUNCTION;
const int function_flags = CLUSTER_FLAG_INIT_FUNCTION | CLUSTER_FLAG_PRE_ATTRIBUTE_CHANGED_FUNCTION;
cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
{