mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
Merge branch 'fix/incorrect-server-init-cb' into 'main'
fix: Correct misplaced server init callback in WiFi Network Diagnostics cluster See merge request app-frameworks/esp-matter!1375
This commit is contained in:
@@ -746,6 +746,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;
|
||||
@@ -3532,9 +3535,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 */
|
||||
|
||||
Reference in New Issue
Block a user