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

Commit 6a32d64

Browse files
authored
Merge pull request #639 from erjiaqing/wdm-client-fix
Fix compile warning and typo in WDMClient
2 parents 18d4aef + 913a0e6 commit 6a32d64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/device-manager/WeaveDataManagementClient.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ void WriteEscapedString(const char * apStr, size_t aLen, std::string & aBuf)
937937
// According to UTF8 encoding, all bytes from a multiple byte UTF8 sequence
938938
// will have 1 as most siginificant bit. So this function will output the
939939
// multi-byte characters without escape.
940-
constexpr char * hex = "0123456789abcdef";
940+
constexpr char hex[] = "0123456789abcdef";
941941
for (size_t i = 0; i < aLen && apStr[i]; i++)
942942
{
943943
switch (apStr[i])
@@ -1065,7 +1065,7 @@ WEAVE_ERROR FormatEventData(TLVReader aInReader, std::string & aBuf)
10651065
if (aInReader.GetType() == nl::Weave::TLV::kTLVType_Structure || aInReader.GetType() == nl::Weave::TLV::kTLVType_Array)
10661066
{
10671067
bool insideStructure = (aInReader.GetType() == nl::Weave::TLV::kTLVType_Structure);
1068-
aBuf += (insideStructure ? ' {' : '[');
1068+
aBuf += (insideStructure ? '{' : '[');
10691069
const char terminating_char = (insideStructure ? '}' : ']');
10701070

10711071
nl::Weave::TLV::TLVType type;

0 commit comments

Comments
 (0)