diff --git a/apps/clck3x2/clock3x2.js b/apps/clck3x2/clock3x2.js index ff151e35a..c48213983 100644 --- a/apps/clck3x2/clock3x2.js +++ b/apps/clck3x2/clock3x2.js @@ -1,4 +1,4 @@ -(() => { +(function(){ // place your const, vars, functions or classes here @@ -104,18 +104,16 @@ }); // special function to handle display switch on - Bangle.on('lcdPower', (on) => { + Bangle.on('lcdPower', function(on){ if (on) { - drawWidgets(); - // call your app function here - updateTime(); + updateTime(); + drawWidgets(); } else { stopPlanning(); } }); // call your app function here - Bangle.setLCDTimeout(30); updateTime(); - + drawWidgets(); })();