I do not know exactly what is going wrong here, but I never placed save() into the uploaded code...
I also wonder why you put all code into the onInit(), because this defeats the purpose and benefit of save() to some extent.
The good part though is that the timers (and the watches) ar in the onInit(): You want them in there because all things have start up after a reset or re-power.
Reshuffle the code so that the onInit includes only the minimum, and everything else is already there. For example:
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.
I do not know exactly what is going wrong here, but I never placed save() into the uploaded code...
I also wonder why you put all code into the onInit(), because this defeats the purpose and benefit of save() to some extent.
The good part though is that the timers (and the watches) ar in the onInit(): You want them in there because all things have start up after a reset or re-power.
Reshuffle the code so that the onInit includes only the minimum, and everything else is already there. For example:
...delayed.