From 3832eaa6ae6e8ddc10f1a75151107354c2689a25 Mon Sep 17 00:00:00 2001 From: xxDUxx <96152564+xxDUxx@users.noreply.github.com> Date: Tue, 2 Aug 2022 16:24:44 +0200 Subject: [PATCH] Update widalt.wid.js --- apps/widalt/widalt.wid.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/widalt/widalt.wid.js b/apps/widalt/widalt.wid.js index c8c964889..0b45c39c0 100644 --- a/apps/widalt/widalt.wid.js +++ b/apps/widalt/widalt.wid.js @@ -5,9 +5,9 @@ function readAltitude() { try {Bangle.getPressure().then((p)=>{ - print("pressure read, altitude "+p.altitude.toFixed(0)); + //print("pressure read, altitude "+p.altitude.toFixed(0)); if (Math.floor(p.altitude)!=lastAlt) { - print("altitude changed!"); + //print("altitude changed!"); lastAlt=Math.floor(p.altitude); alt=p.altitude.toFixed(0); var w = WIDGETS["widalt"].width; @@ -18,7 +18,7 @@ } });} catch(err) { - print("ERROR"); + //print("ERROR"); setTimeout(readAltitude,1000); } } @@ -29,7 +29,7 @@ //if (Date().getTime()-lastDraw<6000) return;//!!!!! if (!Bangle.isLCDOn()) return; //lastDraw=Date().getTime(); - print("drawing"); + //print("drawing"); g.reset(); g.setColor(g.theme.bg); g.fillRect(this.x, this.y, this.x + this.width, this.y + 23);