diff --git a/apps/boot/bootupdate.js b/apps/boot/bootupdate.js index dfd745de2..8ad61f763 100644 --- a/apps/boot/bootupdate.js +++ b/apps/boot/bootupdate.js @@ -182,7 +182,7 @@ if (!g.wrapString) { // added in 2v11 - this is a limited functionality polyfill } return lines; };\n`; -}; +} delete Bangle.appRect; // deleting stops us getting confused by our own decl. builtins can't be deleted if (!Bangle.appRect) { // added in 2v11 - polyfill for older firmwares boot += `Bangle.appRect = ((y,w,h)=>({x:0,y:0,w:w,h:h,x2:w-1,y2:h-1}))(g.getWidth(),g.getHeight()); diff --git a/apps/gpstouch/gpstouch.app.js b/apps/gpstouch/gpstouch.app.js index 0425cdc23..4e49dd1e5 100644 --- a/apps/gpstouch/gpstouch.app.js +++ b/apps/gpstouch/gpstouch.app.js @@ -24,7 +24,7 @@ function resetLastFix() { function processFix(fix) { last_fix.time = fix.time; log_debug(fix); - + if (fix.fix) { if (!last_fix.fix) { // we dont need to suppress this in quiet mode as it is user initiated @@ -78,7 +78,7 @@ function drawInfo() { g.setColor("#fff"); else g.setColor("#000"); - + g.drawString((infoData[infoMode].calc()), w/2, (3*(h-24)/4) + 24); } } @@ -196,7 +196,7 @@ function prevInfo() { } Bangle.on('swipe', dir => { - if (dir == 1) prevInfo() else nextInfo(); + if (dir == 1) prevInfo(); else nextInfo(); draw(); });