Skip to content

Commit

Permalink
make-pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
EskoDijk authored and jwhui committed Feb 7, 2025
1 parent 62f0b3c commit e12f378
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cli/cli_tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,14 @@ template <> otError TcpExample::Process<Cmd("send")>(Arg aArgs[])
{
// Binary hex data payload
dataLen = sizeof(buf);
data = &buf[0];
data = &buf[0];
SuccessOrExit(error = aArgs[1].ParseAsHexString(dataLen, buf));
}
else
{
VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS);
dataLen = aArgs[0].GetLength();
data = reinterpret_cast<uint8_t *>(aArgs[0].GetCString());
data = reinterpret_cast<uint8_t *>(aArgs[0].GetCString());
}

if (mUseCircularSendBuffer)
Expand All @@ -522,8 +522,7 @@ template <> otError TcpExample::Process<Cmd("send")>(Arg aArgs[])
{
size_t written;

SuccessOrExit(error = otTcpCircularSendBufferWrite(&mEndpoint, &mSendBuffer, data,
dataLen, &written, 0));
SuccessOrExit(error = otTcpCircularSendBufferWrite(&mEndpoint, &mSendBuffer, data, dataLen, &written, 0));
}
}
else
Expand Down

0 comments on commit e12f378

Please sign in to comment.