Replies: 2 comments 1 reply
-
I've converted this into a discussion, so it doesn't get closed and out of view. This is by design, in order for the menu to be saved into a safe state, suitable for loading back by load, the whole menu must be saved the first time around. If this were not true, it would be possible to crash the board by loading back an unterminated string, or bring a system up with menus in a partially corrupt state. If you wanted to override this behaviour in your design, and you accept the risk of what's in the ROM, you could yourself write out the header information (IE the magic key and the size field - but what would you set that size field to in that case?) |
Beta Was this translation helpful? Give feedback.
-
If you decided it was a good idea to write the key, and I wouldn't personally recommend doing so, you'd just get the EEPROM abstraction from menu manager, and write the extra two fields yourself, something along the lines of.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How to reproduce:
saveMenuItem + EEPROM.commit()
, reset; the value of the menuItem is not savedmenuMgr.save();EEPROM.commit();
, reset; the value of the menu is empty as beforesaveMenuItem + EEPROM.commit()
again, reset; the value is savedI guess it's because saveMenuItem does't write magic to the EEPROM?
Beta Was this translation helpful? Give feedback.
All reactions