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:
Shu Chen
2017-04-11 19:17:20 -07:00
committed by Jonathan Hui
parent a5c3fb6aaf
commit 7eed76c781
4 changed files with 45 additions and 28 deletions
+1 -1
View File
@@ -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;
}