commit | ad231f8fbd64a6d025ef2e2362e48c9adfb15c01 | [log] [tgz] |
---|---|---|
author | Boris Zbarsky <bzbarsky@apple.com> | Mon Aug 08 15:24:04 2022 -0400 |
committer | GitHub <noreply@github.com> | Mon Aug 08 15:24:04 2022 -0400 |
tree | b3a66f587149f7bb3052838bf4c42668940c3bc0 | |
parent | c3cc4a26121db35310f54afb4acc793bd18f80bc [diff] |
Fix MultiPressComplete event simulation. (#21702) Copy/paste caused the wrong function to be called. Fixes https://github.com/project-chip/connectedhomeip/issues/21700
diff --git a/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp b/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp index 27c23f7..408b73e 100644 --- a/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp +++ b/examples/all-clusters-app/linux/AllClustersCommandDelegate.cpp
@@ -117,7 +117,7 @@ { 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") {