Skip to content

Commit

Permalink
[style] converge some common utils (#881)
Browse files Browse the repository at this point in the history
* submodule: bump openthread from `2868c9c` to `f0d6007`
  • Loading branch information
jwhui authored Dec 5, 2024
1 parent 860beaf commit 26c3b0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/imx_rt/platform/spinel_hdlc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "fsl_component_serial_manager.h"
#include "fsl_os_abstraction.h"

#include "lib/utils/utils.hpp"
#include "common/code_utils.hpp"

#include <openthread/tasklet.h>
#include <openthread/platform/alarm-milli.h>
Expand Down Expand Up @@ -130,11 +130,11 @@ otError HdlcInterface::SendFrame(const uint8_t *aFrame, uint16_t aLength)
otError error = OT_ERROR_NONE;
assert(encoderBuffer.IsEmpty());

EXPECT_NO_ERROR(error = mHdlcEncoder.BeginFrame());
EXPECT_NO_ERROR(error = mHdlcEncoder.Encode(aFrame, aLength));
EXPECT_NO_ERROR(error = mHdlcEncoder.EndFrame());
SuccessOrExit(error = mHdlcEncoder.BeginFrame());
SuccessOrExit(error = mHdlcEncoder.Encode(aFrame, aLength));
SuccessOrExit(error = mHdlcEncoder.EndFrame());
OT_PLAT_DBG("frame len to send = %d/%d", encoderBuffer.GetLength(), aLength);
EXPECT_NO_ERROR(error = Write(encoderBuffer.GetFrame(), encoderBuffer.GetLength()));
SuccessOrExit(error = Write(encoderBuffer.GetFrame(), encoderBuffer.GetLength()));

exit:
if (error != OT_ERROR_NONE)
Expand Down

0 comments on commit 26c3b0f

Please sign in to comment.