Skip to content

Commit 5858296

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Fix MultiPressComplete event simulation. (#21702)
Copy/paste caused the wrong function to be called. Fixes #21700
1 parent fc7c899 commit 5858296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void AllClustersAppCommandHandler::HandleCommand(intptr_t context)
117117
{
118118
uint8_t previousPosition = static_cast<uint8_t>(self->mJsonValue["PreviousPosition"].asUInt());
119119
uint8_t count = static_cast<uint8_t>(self->mJsonValue["TotalNumberOfPressesCounted"].asUInt());
120-
self->OnSwitchMultiPressOngoingHandler(previousPosition, count);
120+
self->OnSwitchMultiPressCompleteHandler(previousPosition, count);
121121
}
122122
else if (name == "PowerOnReboot")
123123
{

0 commit comments

Comments
 (0)