From a01fd09963c07c335aa621e10f624ecc4345e5c6 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Mon, 20 May 2024 14:08:30 -0700 Subject: [PATCH] submodule: bump openthread from `848de78` to `be10913` (#746) Bumps [openthread](https://github.com/openthread/openthread) from `848de78` to `be10913`. - [Commits](https://github.com/openthread/openthread/compare/848de78c6052d2005aed73c199ff83d34e7e8d3f...be109137f30cc5d6000686c1eec1f592dd4657e1) --- updated-dependencies: - dependency-name: openthread dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- openthread | 2 +- src/imx_rt/platform/spinel_hdlc.cpp | 10 ++++++---- src/imx_rt/rt1060/openthread-core-rt1060-config.h | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/openthread b/openthread index 848de78c..be109137 160000 --- a/openthread +++ b/openthread @@ -1 +1 @@ -Subproject commit 848de78c6052d2005aed73c199ff83d34e7e8d3f +Subproject commit be109137f30cc5d6000686c1eec1f592dd4657e1 diff --git a/src/imx_rt/platform/spinel_hdlc.cpp b/src/imx_rt/platform/spinel_hdlc.cpp index 6916db63..2d13194f 100644 --- a/src/imx_rt/platform/spinel_hdlc.cpp +++ b/src/imx_rt/platform/spinel_hdlc.cpp @@ -31,6 +31,8 @@ #include "fsl_component_serial_manager.h" #include "fsl_os_abstraction.h" +#include "lib/utils/utils.hpp" + #include #include @@ -128,11 +130,11 @@ otError HdlcInterface::SendFrame(const uint8_t *aFrame, uint16_t aLength) otError error = OT_ERROR_NONE; assert(encoderBuffer.IsEmpty()); - SuccessOrExit(error = mHdlcEncoder.BeginFrame()); - SuccessOrExit(error = mHdlcEncoder.Encode(aFrame, aLength)); - SuccessOrExit(error = mHdlcEncoder.EndFrame()); + EXPECT_NO_ERROR(error = mHdlcEncoder.BeginFrame()); + EXPECT_NO_ERROR(error = mHdlcEncoder.Encode(aFrame, aLength)); + EXPECT_NO_ERROR(error = mHdlcEncoder.EndFrame()); OT_PLAT_DBG("frame len to send = %d/%d", encoderBuffer.GetLength(), aLength); - SuccessOrExit(error = Write(encoderBuffer.GetFrame(), encoderBuffer.GetLength())); + EXPECT_NO_ERROR(error = Write(encoderBuffer.GetFrame(), encoderBuffer.GetLength())); exit: if (error != OT_ERROR_NONE) diff --git a/src/imx_rt/rt1060/openthread-core-rt1060-config.h b/src/imx_rt/rt1060/openthread-core-rt1060-config.h index bf34bd61..24626741 100644 --- a/src/imx_rt/rt1060/openthread-core-rt1060-config.h +++ b/src/imx_rt/rt1060/openthread-core-rt1060-config.h @@ -242,7 +242,7 @@ LOG_MODULE_DEFINE(ot_stack_log, kLOG_LevelDebug) * `RadioSpinel` platform is used. * */ -#define OPENTHREAD_CONFIG_PLATFORM_RADIO_SPINEL_RX_FRAME_BUFFER_SIZE 512 +#define OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE 512 /** * @def OPENTHREAD_CONFIG_PING_SENDER_ENABLE