diff --git a/src/app/clusters/concentration-measurement-server/concentration-measurement-server.h b/src/app/clusters/concentration-measurement-server/concentration-measurement-server.h index 391674bb844d95..c2799fd822cdf9 100644 --- a/src/app/clusters/concentration-measurement-server/concentration-measurement-server.h +++ b/src/app/clusters/concentration-measurement-server/concentration-measurement-server.h @@ -112,7 +112,7 @@ class Instance MeasurementMediumEnum mMeasurementMedium; - uint32_t mFeature = 0; + uint32_t mFeatureMap = 0; // AttributeAccessInterface CHIP_ERROR Read(const ConcreteReadAttributePath & aPath, AttributeValueEncoder & aEncoder) override @@ -192,6 +192,10 @@ class Instance case Attributes::MeasurementMedium::Id: ReturnErrorOnFailure(aEncoder.Encode(mMeasurementMedium)); break; + + case Attributes::FeatureMap::Id: + ReturnErrorOnFailure(aEncoder.Encode(mFeatureMap)); + break; } return CHIP_NO_ERROR; @@ -351,7 +355,7 @@ class Instance // Register the object as attribute provider VerifyOrReturnError(registerAttributeAccessOverride(this), CHIP_ERROR_INCORRECT_STATE); - mFeature = GenerateFeatureMap(); + mFeatureMap = GenerateFeatureMap(); return CHIP_NO_ERROR; };