Skip to content

Commit

Permalink
Decouple PumpConfigurationAndControl from EmberCompat (project-chip#3…
Browse files Browse the repository at this point in the history
…6045)

This uses the ember internal function instead of the ember compatibility
functions override. It is somewhat unclear why we have an override that
replaces one method with a single method that is identical except
arguments.

Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
2 people authored and yyzhong-g committed Dec 11, 2024
1 parent 012b11b commit ad669e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ static void setEffectiveModes(EndpointId endpoint)
// if this is not suitable, the application should override this value in
// the post attribute change callback for the operation mode attribute
const EmberAfAttributeMetadata * effectiveControlModeMetaData;
effectiveControlModeMetaData = GetAttributeMetadata(
app::ConcreteAttributePath(endpoint, PumpConfigurationAndControl::Id, Attributes::EffectiveControlMode::Id));
effectiveControlModeMetaData =
emberAfLocateAttributeMetadata(endpoint, PumpConfigurationAndControl::Id, Attributes::EffectiveControlMode::Id);
controlMode = static_cast<ControlModeEnum>(effectiveControlModeMetaData->defaultValue.defaultValue);
}

Expand Down

0 comments on commit ad669e4

Please sign in to comment.