Skip to content
Commit 24545764 authored by Lukasz Maciejonczyk's avatar Lukasz Maciejonczyk Committed by Marti Bolivar
Browse files

net: openthread: fix check for unsuccessful wipe



ot_setting_delete_subtree returns the information if the subtree
had been found in the persistent storage or not before removing.
This has matter for otPlatSettingsGet. In other uses cases
the return value shoud be ignored.
The right place for the check if deletion succeded is in
settings_load_subtree_direct and its callback.
Currently "ot factoryreset" causes an assert if there is no
OpenThread dataset stored in the persistent memory.
This PR fixes it.

Signed-off-by: default avatarLukasz Maciejonczyk <lukasz.maciejonczyk@nordicsemi.no>
parent 2597b787
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment