We have reset() to reset without loading or running onInit(), but there doesn't seem to be a way to load the stored code without running onInit(). Load() states that it runs onInit(), and reset doesn't load anything.
Am I missing something simple? It would be useful to be able to get back to the clean, pre-onInit code, so that you could edit a function and save() it again - without having to have the clean code available to re-send (for example, if programming over something other than the IDE. Particularly relevant due to the memory constraints, where functions used to initialize things are deleted after they run to free the memory up.
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.
We have reset() to reset without loading or running onInit(), but there doesn't seem to be a way to load the stored code without running onInit(). Load() states that it runs onInit(), and reset doesn't load anything.
Am I missing something simple? It would be useful to be able to get back to the clean, pre-onInit code, so that you could edit a function and save() it again - without having to have the clean code available to re-send (for example, if programming over something other than the IDE. Particularly relevant due to the memory constraints, where functions used to initialize things are deleted after they run to free the memory up.