I create a project to learn details of settings module and code as above.
When the code running ,I try to trigger settings_save_one to save data,the function return -2.
How can I repair it?
I create a project to learn details of settings module and code as above.
When the code running ,I try to trigger settings_save_one to save data,the function return -2.
How can I repair it?
I would suggest you modify your settings to test codes from existing settings sample. It will save some effort on debugging and help you quickly learn how to use settings system in a propery way.
I just combine buttons with settings in my code.Just realize that press button to trigger settings opration.
I want to press button1 to save data,press button2 to delete data,press button3 to call settings_load() so that know how many datas are saved and press button4 to change a param so that the data be saved will change that will be save next time.
And now I run my code and press button1.The settings_save_one() will return -2.
I want to know why it failed and how to change it.
Hi Chaoyue,
Did you manage to solve this issue?
I am just back from traveling and tested your codes on a nRF52840DK board, but I did not see the error. Have you tried on another nRF52840DK to check if this is repeatable?
Best regards,
Charlie
Hi Chaoyue,
Did you manage to solve this issue?
I am just back from traveling and tested your codes on a nRF52840DK board, but I did not see the error. Have you tried on another nRF52840DK to check if this is repeatable?
Best regards,
Charlie