Skip to content

Commit

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

Fixes project-chip#21700
  • Loading branch information
bzbarsky-apple committed Aug 7, 2022
1 parent 5ab5be3 commit 5699a6f
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 5699a6f

Please sign in to comment.