Had the IDE 'Save on Upload' some code on 1.94.
to clear the old code. After reset(), old code is still present and executed, visible by console.log() messages from the old code. What am I missing?
In left pane type reset() then save(), it will clear the saved program.
Thanks, Frida. I'm pretty sure I tried that as well, though.
Will try again.
The simplest way is to do what you did for the reset, but to leave the button pressed. The red led will flash 5 times (still keep it pressed for at least 1 second after the flashing stops) and then any saved code will be removed automatically. You'll need firmware 1v94 or later for that to work though.
Otherwise E.setBootCode("") should wipe any 'save on send' code out, as well as saved code. The quotes might be required though - I can't remember
E.setBootCode("") did it, thanks!
You might want to update the documentation.
Thanks - will do! I'll also make sure that E.setBootCode() work on 1v95 firmwares
Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
For a full reference visit the Markdown syntax.
© Espruino, powered by microcosm.
Report a problem