From 3293100628ea7cdc3454b5ac094b0e865fbb0a80 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 8 Aug 2022 15:24:04 -0400 Subject: [PATCH] Fix MultiPressComplete event simulation. (#21702) Copy/paste caused the wrong function to be called. Fixes https://github.com/project-chip/connectedhomeip/issues/21700 --- examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp b/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp index 27c23f7e33b659..408b73ed6c8ac8 100644 --- a/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp +++ b/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp @@ -117,7 +117,7 @@ void AllClustersAppCommandHandler::HandleCommand(intptr_t context) { uint8_t previousPosition = static_cast(self->mJsonValue["PreviousPosition"].asUInt()); uint8_t count = static_cast(self->mJsonValue["TotalNumberOfPressesCounted"].asUInt()); - self->OnSwitchMultiPressOngoingHandler(previousPosition, count); + self->OnSwitchMultiPressCompleteHandler(previousPosition, count); } else if (name == "PowerOnReboot") {