Skip to content

Commit

Permalink
Sync optional attributes list with .zap file for EPM
Browse files Browse the repository at this point in the history
  • Loading branch information
hasty committed Jan 27, 2024
1 parent febcb9c commit 8f1edea
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,16 @@ void emberAfElectricalPowerMeasurementClusterInitCallback(chip::EndpointId endpo
gDelegate = std::make_unique<ElectricalPowerMeasurementDelegate>();
if (gDelegate)
{
gInstance = std::make_unique<Instance>(endpointId, *gDelegate, BitMask<Feature, uint32_t>(Feature::kAlternatingCurrent),
BitMask<OptionalAttributes, uint32_t>());
gInstance = std::make_unique<Instance>(
endpointId, *gDelegate, BitMask<Feature, uint32_t>(Feature::kAlternatingCurrent),
BitMask<OptionalAttributes, uint32_t>(
OptionalAttributes::kOptionalAttributeRanges, OptionalAttributes::kOptionalAttributeVoltage,
OptionalAttributes::kOptionalAttributeActiveCurrent, OptionalAttributes::kOptionalAttributeReactiveCurrent,
OptionalAttributes::kOptionalAttributeApparentCurrent, OptionalAttributes::kOptionalAttributeReactivePower,
OptionalAttributes::kOptionalAttributeApparentPower, OptionalAttributes::kOptionalAttributeRMSVoltage,
OptionalAttributes::kOptionalAttributeRMSCurrent, OptionalAttributes::kOptionalAttributeRMSPower,
OptionalAttributes::kOptionalAttributeFrequency, OptionalAttributes::kOptionalAttributePowerFactor,
OptionalAttributes::kOptionalAttributeNeutralCurrent));

gInstance->Init();
}
Expand Down

0 comments on commit 8f1edea

Please sign in to comment.