Funny newbie error - renaming Reset by accident :) :) #252
Replies: 5 comments
-
Posted at 2014-04-07 by @gfwilliams Oops! :) You can either:
Or probably the most important way out (mentioned in troubleshooting) is: Press and release RST, and press BTN1 immediately after. Not too soon after though (or you'll get the bootloader mode with the glowing LED)... Once you've done that, Espruino will start up without loading the saved program. You can then just type |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-07 by mgg1010 I think I tried delete(reset); and some JS documentation I found online suggested you couldn't delete vars. I probably just missed it. I think I found the BTN1 fix by accident. Thanks :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-08 by @gfwilliams No problem... I only implemented |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-08 by mgg1010 Well, entering 'delete' into the search UI gives "no results" which probably stopped me a bit :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-04-08 by @gfwilliams Ahh. Yes, it's just a built-in JavaScript keyword, and the search only covers the documentation and function reference. I'll add it to the FAQ... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-04-06 by mgg1010
Hi
Without thinking about it, I created a script with
var reset=0;
in the top level. I then used save();
Once I'd done this, I obviously couldn't use reset() to clear the memory, and
hard-reset reloaded the same program..
I really couldn't see how to get out of this. But I messed about for a while and
eventually somehow it went away.
If there is a way to undefine a variable or clear the program memory without using
reset() it would be useful to document here please :)
Beta Was this translation helpful? Give feedback.
All reactions