It's working if it is changed to:
function planChime() { if (chimeTimer) { clearTimeout(chimeTimer); } chimeTimer = setTimeout(function() { Bangle.buzz().then(() => { setTimeout(function(){ planChime(); }, 2000); }); }, 3600000 - (Date.now() % 3600000)); }
Nice. So the infinite buzzing issue is resolved?
Yes. Above is another solution, based on what Gordon wrote.
@jgDev started
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.
It's working if it is changed to: