From 3317574efbf725ff6c93103e6f7bd3103c2d009e Mon Sep 17 00:00:00 2001 From: liyashuai Date: Mon, 15 Dec 2025 14:46:37 +0800 Subject: [PATCH] Doorlock: Add calling for emberAfDoorLockClusterInitCallback function --- components/esp_matter/data_model/esp_matter_cluster.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/esp_matter/data_model/esp_matter_cluster.cpp b/components/esp_matter/data_model/esp_matter_cluster.cpp index 0e6ce1597..f7b9ec5ca 100644 --- a/components/esp_matter/data_model/esp_matter_cluster.cpp +++ b/components/esp_matter/data_model/esp_matter_cluster.cpp @@ -1985,11 +1985,12 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags) namespace door_lock { const function_generic_t function_list[] = { + (function_generic_t)emberAfDoorLockClusterInitCallback, (function_generic_t)MatterDoorLockClusterServerAttributeChangedCallback, (function_generic_t)MatterDoorLockClusterServerShutdownCallback, (function_generic_t)MatterDoorLockClusterServerPreAttributeChangedCallback, }; -const int function_flags = CLUSTER_FLAG_ATTRIBUTE_CHANGED_FUNCTION | CLUSTER_FLAG_SHUTDOWN_FUNCTION | +const int function_flags = CLUSTER_FLAG_INIT_FUNCTION | CLUSTER_FLAG_ATTRIBUTE_CHANGED_FUNCTION | CLUSTER_FLAG_SHUTDOWN_FUNCTION | CLUSTER_FLAG_PRE_ATTRIBUTE_CHANGED_FUNCTION; cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)