That has helped, thank you.
The change by itself stopped everything from working, but thinking it through I increased the timer in onInit() to 30000ms. (The gotcha I had designed for myself there was that the led flash timer was set to 10 seconds, only to be restarted every 10 seconds, so it never flashed any leds!).
Now I need to juggle the extra battery drain of flashing a warning led against letting the battery run down without warning.
Thanks again @Gordon.
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.
That has helped, thank you.
The change by itself stopped everything from working, but thinking it through I increased the timer in onInit() to 30000ms. (The gotcha I had designed for myself there was that the led flash timer was set to 10 seconds, only to be restarted every 10 seconds, so it never flashed any leds!).
Now I need to juggle the extra battery drain of flashing a warning led against letting the battery run down without warning.
Thanks again @Gordon.