Which version of the Espruino firmware do you have? The way things get saved changed a few versions ago.
If it's up to date though then everything is saved into a filesystem - if you do require('Storage').list() then you get a list of all the files.
If you do E.setBootCode(...) then that'll save just the code in the string you supplied. After that, you can remove the other (save()d) file from flash and you'll be sorted.
If it's an earlier version then literally just calling E.setBootCode should blow away any code that you save()d :)
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.
Which version of the Espruino firmware do you have? The way things get saved changed a few versions ago.
If it's up to date though then everything is saved into a filesystem - if you do
require('Storage').list()
then you get a list of all the files.If you do
E.setBootCode(...)
then that'll save just the code in the string you supplied. After that, you can remove the other (save()
d) file from flash and you'll be sorted.If it's an earlier version then literally just calling
E.setBootCode
should blow away any code that yousave()
d :)