Skip to content

Commit

Permalink
Use define for open
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeg-sfy committed Dec 17, 2021
1 parent 70ef4b3 commit 6c8c670
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,11 @@ bool emberAfWindowCoveringClusterUpOrOpenCallback(app::CommandHandler * commandO
emberAfWindowCoveringClusterPrint("UpOrOpen command received");
if (HasFeature(endpoint, WcFeature::kLift))
{
Attributes::TargetPositionLiftPercent100ths::Set(endpoint, 0);
Attributes::TargetPositionLiftPercent100ths::Set(endpoint, WC_PERCENT100THS_MIN);
}
if (HasFeature(endpoint, WcFeature::kTilt))
{
Attributes::TargetPositionTiltPercent100ths::Set(endpoint, 0);
Attributes::TargetPositionTiltPercent100ths::Set(endpoint, WC_PERCENT100THS_MIN);
}
emberAfSendImmediateDefaultResponse(EMBER_ZCL_STATUS_SUCCESS);
return true;
Expand Down

0 comments on commit 6c8c670

Please sign in to comment.