Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #639 from erjiaqing/wdm-client-fix
Browse files Browse the repository at this point in the history
Fix compile warning and typo in WDMClient
  • Loading branch information
robszewczyk authored Jan 15, 2021
2 parents 18d4aef + 913a0e6 commit 6a32d64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/device-manager/WeaveDataManagementClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ void WriteEscapedString(const char * apStr, size_t aLen, std::string & aBuf)
// According to UTF8 encoding, all bytes from a multiple byte UTF8 sequence
// will have 1 as most siginificant bit. So this function will output the
// multi-byte characters without escape.
constexpr char * hex = "0123456789abcdef";
constexpr char hex[] = "0123456789abcdef";
for (size_t i = 0; i < aLen && apStr[i]; i++)
{
switch (apStr[i])
Expand Down Expand Up @@ -1065,7 +1065,7 @@ WEAVE_ERROR FormatEventData(TLVReader aInReader, std::string & aBuf)
if (aInReader.GetType() == nl::Weave::TLV::kTLVType_Structure || aInReader.GetType() == nl::Weave::TLV::kTLVType_Array)
{
bool insideStructure = (aInReader.GetType() == nl::Weave::TLV::kTLVType_Structure);
aBuf += (insideStructure ? ' {' : '[');
aBuf += (insideStructure ? '{' : '[');
const char terminating_char = (insideStructure ? '}' : ']');

nl::Weave::TLV::TLVType type;
Expand Down

0 comments on commit 6a32d64

Please sign in to comment.