Skip to content

Commit

Permalink
Merge branch 'master' into test-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
abpoth authored Aug 15, 2023
2 parents b3775ff + 39511c2 commit e13ece9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform/OpenThread/OpenThreadUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ void LogOpenThreadStateChange(otInstance * otInst, uint32_t flags)
}
#if CHIP_CONFIG_SECURITY_TEST_MODE
{
const otNetworkKey * otKey = otThreadGetNetworkKey(otInst);
otNetworkKey otKey;
otThreadGetNetworkKey(otInst, &otKey);
for (int i = 0; i < OT_NETWORK_KEY_SIZE; i++)
snprintf(&strBuf[i * 2], 3, "%02X", otKey->m8[i]);
snprintf(&strBuf[i * 2], 3, "%02X", otKey.m8[i]);
ChipLogDetail(DeviceLayer, " Network Key: %s", strBuf);
}
#endif // CHIP_CONFIG_SECURITY_TEST_MODE
Expand Down

0 comments on commit e13ece9

Please sign in to comment.