Just a note of removing chimeTimer=undefined - chimeTimer will still be set to the ID of the timer that has now finished, and there's a high probability that subsequent timers could be given the same ID and then accidentally cleared by planChime.
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.
Just a note of removing
chimeTimer=undefined
- chimeTimer will still be set to the ID of the timer that has now finished, and there's a high probability that subsequent timers could be given the same ID and then accidentally cleared by planChime.