Skip to content

Commit

Permalink
make pretty
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemyslaw Bida committed May 13, 2024
1 parent 6786423 commit 03530b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cli/cli_tcat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ template <> otError Tcat::Process<Cmd("vendorid")>(Arg aArgs[])
for (size_t i = 0; mVendorInfo.mDeviceIds[i].mDeviceIdType != OT_TCAT_DEVICE_ID_EMPTY; i++)
{
OutputFormat("type %s, value: ", kVendorIdTypes[mVendorInfo.mDeviceIds[i].mDeviceIdType]);
OutputBytesLine((uint8_t *)mVendorInfo.mDeviceIds[i].mDeviceId,
mVendorInfo.mDeviceIds[i].mDeviceIdLen);
OutputBytesLine((uint8_t *)mVendorInfo.mDeviceIds[i].mDeviceId, mVendorInfo.mDeviceIds[i].mDeviceIdLen);
}
}
else
Expand Down
4 changes: 2 additions & 2 deletions src/core/meshcop/tcat_agent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,10 @@ Error TcatAgent::HandleStartThreadInterface(void)
void SeralizeTcatAdvertisementTlv(uint8_t *aBuffer,
uint16_t &aOffset,
TcatAdvertisementTlvType aType,
uint16_t aLength,
uint16_t aLength,
const uint8_t *aValue)
{
aBuffer[aOffset++] = aType << 4 | (uint8_t)(aLength & 0xf);
aBuffer[aOffset++] = (uint8_t)(aType << 4 | (aLength & 0xf));
memcpy(aBuffer + aOffset, aValue, aLength);
aOffset += aLength;
}
Expand Down

0 comments on commit 03530b3

Please sign in to comment.