Getting rid of onInit() at runtime #5966
Replies: 1 comment
-
Posted at 2018-07-10 by @gfwilliams 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 If you do If it's an earlier version then literally just calling Posted at 2018-07-12 by Steffen I'm using v1.99. Doing E.setBootCode followed by require('Storage').erase('.varimg') worked. Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-07-10 by Steffen
I've got an Espruino WiFi with a telnet connection but no USB (unless I do things I'd rather avoid).
It's got onInit set with code I want to get rid of and rather replace by an E.setBootCode string.
The goal is to clean up over wifi and then do an E.reboot.
I'm not aware of a way to get rid of onInit and all the other objects created at runtime that would put the Espruino in a kind of clean state that would be worth a save().
Can this be achieved at all?
Beta Was this translation helpful? Give feedback.
All reactions