h2zero / n-able-Arduino

An arduino core for ARM based BLE devices supported by the NimBLE stack.
GNU Lesser General Public License v2.1
34 stars 12 forks source link

EEPROM does not read values after restart from Interrupt #41

Open j45p41 opened 3 months ago

j45p41 commented 3 months ago

Hi,

asking this here first as it is part of the library but I know its more of a platform issue.

I store several values in EEPROM, sometimes after a restart the values are read but set as 0. Then after a subsequent restart the values are back again.

To put:

EEPROM.begin();
EEPROM.put(0, value);

To get:

EEPROM.begin();
EEPROM.get(0, value);

I am wondering if the library may require an update from original branch (which I am unsure how to do) or if this is a know bug. If you can help on either then that will appreciated.

h2zero commented 3 months ago

Hi @j45p41 I don't know of any bugs related to this. If you try the EEPROM example do you have the same result?