mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
Merge branch 'esp_matter/fix_wifi_diag' into 'release/v1.5'
fix: Correct misplaced server init callback in WiFi Network Diagnostics cluster(v1.5) See merge request app-frameworks/esp-matter!1411
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user