diff --git a/examples/chef/common/chef-air-quality.cpp b/examples/chef/common/chef-air-quality.cpp index f74f4ea546753f..3385c9e455e339 100644 --- a/examples/chef/common/chef-air-quality.cpp +++ b/examples/chef/common/chef-air-quality.cpp @@ -35,9 +35,9 @@ static std::map gAirQualityClusterInstance{}; void emberAfAirQualityClusterInitCallback(chip::EndpointId endpointId) { - Instance * clusterInstance = new Instance(1, airQualityFeatures); + Instance * clusterInstance = new Instance(endpointId, airQualityFeatures); clusterInstance->Init(); - gAirQualityClusterInstance[1] = clusterInstance; + gAirQualityClusterInstance[endpointId] = clusterInstance; } EmberAfStatus chefAirQualityWriteCallback(EndpointId endpoint, ClusterId clusterId,