From 69ce853d716ee8ff0460d1fbb2c2a0a6b04fc3bd Mon Sep 17 00:00:00 2001 From: sebi5361 Date: Mon, 2 Dec 2019 19:35:55 +0100 Subject: [PATCH] message11 --- apps/clck3x2/clock3x2.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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(); })();