Skip to content

Commit

Permalink
Fix MultiPressComplete event simulation. (#21702)
Browse files Browse the repository at this point in the history
Copy/paste caused the wrong function to be called.

Fixes #21700
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Aug 22, 2023
1 parent 57de784 commit 3293100
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void AllClustersAppCommandHandler::HandleCommand(intptr_t context)
{
uint8_t previousPosition = static_cast<uint8_t>(self->mJsonValue["PreviousPosition"].asUInt());
uint8_t count = static_cast<uint8_t>(self->mJsonValue["TotalNumberOfPressesCounted"].asUInt());
self->OnSwitchMultiPressOngoingHandler(previousPosition, count);
self->OnSwitchMultiPressCompleteHandler(previousPosition, count);
}
else if (name == "PowerOnReboot")
{
Expand Down

0 comments on commit 3293100

Please sign in to comment.