Skip to content

Commit

Permalink
Fix AirQualitySensor hardcoded endpointId as 1 (project-chip#30840)
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 committed Dec 6, 2023
1 parent 28e2a43 commit 56fa964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/chef/common/chef-air-quality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ static std::map<int, Instance *> 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,
Expand Down

0 comments on commit 56fa964

Please sign in to comment.