My application uses SDK 11 and s130 on an nRF51822. In certain cases I want to delete all my bonds and go into sys off.
I presume that when I call pm_peers_delete()
, that results in a flash write using fstorage. How do I wait for that to complete before I go into sys off?