From deaec54dbf4e12e5ae441136d95cef0c610d9a6f Mon Sep 17 00:00:00 2001 From: Piotr Koziar <44554861+piotrkoziar@users.noreply.github.com> Date: Thu, 18 May 2023 22:01:54 +0200 Subject: [PATCH] [ncp] fix RegisterPeekPokeDelegates call (#9064) This commit fixes an issue where `RegisterPeekPoke` was called instead of `RegisterPeekPokeDelegates`, causing compilation errors in some builds. --- src/ncp/ncp_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ncp/ncp_base.cpp b/src/ncp/ncp_base.cpp index 73541aed7..780772879 100644 --- a/src/ncp/ncp_base.cpp +++ b/src/ncp/ncp_base.cpp @@ -2608,7 +2608,7 @@ void otNcpRegisterPeekPoke(otNcpDelegateAllowPeekPoke aAllowPeekDelegate, otNcpD if (ncp != nullptr) { - ncp->RegisterPeekPoke(aAllowPeekDelegate, aAllowPokeDelegate); + ncp->RegisterPeekPokeDelegates(aAllowPeekDelegate, aAllowPokeDelegate); } } #endif // OPENTHREAD_CONFIG_NCP_ENABLE_PEEK_POKE