fix: correct misplaced server init callback in wifi-network-diagnostics-cluster

Fixes https://github.com/espressif/esp-matter/issues/1623
This commit is contained in:
mahesh
2025-12-26 09:16:41 +05:30
committed by WanqQixiang
parent 75775c04f6
commit 7ff6cafec2
@@ -745,6 +745,9 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
/* Attributes not managed internally */
global::attribute::create_cluster_revision(cluster, cluster_revision);
cluster::set_init_and_shutdown_callbacks(cluster, ESPMatterWiFiNetworkDiagnosticsClusterServerInitCallback,
ESPMatterWiFiNetworkDiagnosticsClusterServerShutdownCallback);
}
return cluster;
@@ -3529,9 +3532,6 @@ cluster_t *create(endpoint_t *endpoint, config_t *config, uint8_t flags)
/** Attributes not managed internally **/
global::attribute::create_cluster_revision(cluster, cluster_revision);
cluster::set_init_and_shutdown_callbacks(cluster, ESPMatterWiFiNetworkDiagnosticsClusterServerInitCallback,
ESPMatterWiFiNetworkDiagnosticsClusterServerShutdownCallback);
}
/* Commands */