mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user