Skip to content

Commit

Permalink
Fix AirQualitySensor hardcoded endpointId as 1 (#30840)
Browse files Browse the repository at this point in the history
  • Loading branch information
erwinpan1 authored and pull[bot] committed Jan 30, 2024
1 parent e18366c commit 1544528
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 1544528

Please sign in to comment.