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 15, 2024
1 parent 6786423 commit f765f71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/openthread/tcat.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ typedef struct otTcatVendorInfo
* Pointer to call when application data was received over a TCAT TLS connection.
*
* @param[in] aInstance A pointer to an OpenThread instance.
* @param[in] aMessagotTcatVendorIdTypee A pointer to the message.
* @param[in] aMessage A pointer to the message.
* @param[in] aOffset The offset where the application data begins.
* @param[in] aTcatApplicationProtocol The protocol type of the message received.
* @param[in] aServiceName The name of the service the message is direced to.
Expand Down
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 f765f71

Please sign in to comment.