mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 13:17:48 +00:00
Use a new specialized ChildInfo structure for children information persistent storage (#1572)
Create a new specialized ChildInfo structure, which will be only used for children information storage Also update otPlatSettingsGet() to be consistent with its documentation: * return the actual length of the setting, but not the actual length it read to aValue
This commit is contained in:
@@ -378,7 +378,7 @@ ThreadError otPlatSettingsGet(otInstance *aInstance, uint16_t aKey, int aIndex,
|
||||
utilsFlashRead(address + sizeof(struct settingsBlock), aValue, readLength);
|
||||
}
|
||||
|
||||
valueLength = readLength;
|
||||
valueLength = block.length;
|
||||
error = kThreadError_None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user