reset
Uncaught Error: Unable to find or create file
at line 1 col 114
...ATA_SIZE*CONST.LAPS_STORAGE))throw new Error('could not reserve stor...
^
in function "reset" called from line 1 col 15
a&&Flash.reset(),Object.keys(this.macs).forEach(c=>{const d=this.macs[c];...
^
in function "init" called from line 1 col 122
...tons.BTN_MID]&&(Race.init(!0),ErrorLog.log=[]),this.objects.forE...
^
in function "wakeup" called from line 1 col 16
a?Power.wakeup():Power.sleep()
^
in function "onOff" called from line 1 col 37
...N?Buttons.onOff(a,b.state==0):Buttons.event(a,b.state==0)
^
in function called from system
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.
@Gordon I'd like to have a method to do a reset "in the field", meaning starting everything new when I have to.
What is working is calling my
reset()
method via commandline.What does not work is calling it through a handler after a button was pressed.
The method does this:
manual call:
through handler: