Skip to content

Commit

Permalink
Fix incorrect feature check to align with spec (project-chip#22435)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored and isiu-apple committed Sep 16, 2022
1 parent a867a57 commit 5cb5a0f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -689,11 +689,11 @@ bool emberAfWindowCoveringClusterUpOrOpenCallback(app::CommandHandler * commandO
return true;
}

if (HasFeature(endpoint, Feature::kLift))
if (HasFeature(endpoint, Feature::kPositionAwareLift))
{
Attributes::TargetPositionLiftPercent100ths::Set(endpoint, WC_PERCENT100THS_MIN_OPEN);
}
if (HasFeature(endpoint, Feature::kTilt))
if (HasFeature(endpoint, Feature::kPositionAwareTilt))
{
Attributes::TargetPositionTiltPercent100ths::Set(endpoint, WC_PERCENT100THS_MIN_OPEN);
}
Expand All @@ -719,11 +719,11 @@ bool emberAfWindowCoveringClusterDownOrCloseCallback(app::CommandHandler * comma
return true;
}

if (HasFeature(endpoint, Feature::kLift))
if (HasFeature(endpoint, Feature::kPositionAwareLift))
{
Attributes::TargetPositionLiftPercent100ths::Set(endpoint, WC_PERCENT100THS_MAX_CLOSED);
}
if (HasFeature(endpoint, Feature::kTilt))
if (HasFeature(endpoint, Feature::kPositionAwareTilt))
{
Attributes::TargetPositionTiltPercent100ths::Set(endpoint, WC_PERCENT100THS_MAX_CLOSED);
}
Expand Down

0 comments on commit 5cb5a0f

Please sign in to comment.