That's odd. Does it work better if you do reset() and save() as two separate commands? I think it says in the documentation, but reset() will reset the chip without actually saving anything.
There isn't a way to 'mute' save I'm afraid, but using save() to save data that changes all the time isn't a good idea anyway - it rewrites all of flash each time, so it can wear out the flash memory inside Espruino relatively quickly.
Have you seen the Flash EEPROM Library - that will allow you to save data to flash memory, but it does so using a simple 'journalling' system which means that all of the flash memory gets used up before it is erased.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
That's odd. Does it work better if you do
reset()
andsave()
as two separate commands? I think it says in the documentation, butreset()
will reset the chip without actually saving anything.There isn't a way to 'mute' save I'm afraid, but using
save()
to save data that changes all the time isn't a good idea anyway - it rewrites all of flash each time, so it can wear out the flash memory inside Espruino relatively quickly.Have you seen the Flash EEPROM Library - that will allow you to save data to flash memory, but it does so using a simple 'journalling' system which means that all of the flash memory gets used up before it is erased.