Could you elaborate on the issue please, for example:
Does it fail to save / write corrupt data?
I’m not familiar with the nano, is it an AVR unit? If so are you using the inbuilt eeprom?
The best place to save is either to provide a save function somewhere on the menu, or to detect the power down state and then save during the power loss detection. See this page.
https://www.thecoderscorner.com/electronics/microcontrollers/psu-control/detecting-power-loss-in-powersupply/
|