I have a strange problem with pstorage function with nrf51822 with s110 v6. I need to use nrf_delay ( about 1 second long ) after store and before read. This is the source code: http://pastebin.com/snS78vnf My workflow is that: Clear the data, wait for the callback function When clear callback function call, write to the memory When write callback function call, load to the memory
From this behaviour. I think that it may relate to the problem that pstorage will not take care for the case the chip sleeps or something like this. Is there anyway I can improve this code without the nrf_delay