From 9a24086101c76d81822444aed9e22f9a608d524e Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 20 Feb 2022 00:01:45 +0100 Subject: [PATCH] Do no use events just for redrawing --- apps/imageclock/app.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/imageclock/app.js b/apps/imageclock/app.js index f26f08eb1..cc8b59c40 100644 --- a/apps/imageclock/app.js +++ b/apps/imageclock/app.js @@ -353,7 +353,6 @@ function initialDraw(){ draw(undefined, zeroOffset); } function handleHrm(e){ if (e.confidence > 70){ pulse = e.bpm; - initialDraw(); } } @@ -361,7 +360,6 @@ function handlePressure(e){ alt = e.altitude; temp = e.temperature; press = e.pressure; - initialDraw(); } @@ -389,10 +387,6 @@ function handleLock(isLocked){ Bangle.setUI("clock"); -Bangle.on('GPS', initialDraw); -Bangle.on('charging', initialDraw); -Bangle.on('mag', initialDraw); -Bangle.on('health', initialDraw); Bangle.on('pressure', handlePressure); Bangle.on('HRM', handleHrm); Bangle.on('lock', handleLock);