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

Commit

Permalink
Fix compile warning and typo in WDMClient
Browse files Browse the repository at this point in the history
  • Loading branch information
erjiaqing committed Jan 12, 2021
1 parent 1dd59be commit 913a0e6
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 913a0e6

Please sign in to comment.