mirror of
https://github.com/espressif/openthread.git
synced 2026-07-15 16:44:09 +00:00
[api] change type from uint8_t* to otExtendedPanId (#2960)
This commit is contained in:
+4
-4
@@ -956,17 +956,17 @@ void Interpreter::ProcessExtPanId(int argc, char *argv[])
|
||||
|
||||
if (argc == 0)
|
||||
{
|
||||
otBufferPtr extPanId(otThreadGetExtendedPanId(mInstance));
|
||||
otBufferPtr extPanId(reinterpret_cast<const uint8_t *>(otThreadGetExtendedPanId(mInstance)));
|
||||
OutputBytes(extPanId, OT_EXT_PAN_ID_SIZE);
|
||||
mServer->OutputFormat("\r\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
uint8_t extPanId[8];
|
||||
otExtendedPanId extPanId;
|
||||
|
||||
VerifyOrExit(Hex2Bin(argv[0], extPanId, sizeof(extPanId)) >= 0, error = OT_ERROR_PARSE);
|
||||
VerifyOrExit(Hex2Bin(argv[0], extPanId.m8, sizeof(extPanId)) >= 0, error = OT_ERROR_PARSE);
|
||||
|
||||
error = otThreadSetExtendedPanId(mInstance, extPanId);
|
||||
error = otThreadSetExtendedPanId(mInstance, &extPanId);
|
||||
}
|
||||
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user