fix lint errors

pull/869/head
Gordon Williams 2021-10-28 12:14:14 +01:00
parent eefa209af4
commit cbf69eeaa2
2 changed files with 4 additions and 4 deletions

View File

@ -182,7 +182,7 @@ if (!g.wrapString) { // added in 2v11 - this is a limited functionality polyfill
} }
return lines; return lines;
};\n`; };\n`;
}; }
delete Bangle.appRect; // deleting stops us getting confused by our own decl. builtins can't be deleted 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 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()); boot += `Bangle.appRect = ((y,w,h)=>({x:0,y:0,w:w,h:h,x2:w-1,y2:h-1}))(g.getWidth(),g.getHeight());

View File

@ -24,7 +24,7 @@ function resetLastFix() {
function processFix(fix) { function processFix(fix) {
last_fix.time = fix.time; last_fix.time = fix.time;
log_debug(fix); log_debug(fix);
if (fix.fix) { if (fix.fix) {
if (!last_fix.fix) { if (!last_fix.fix) {
// we dont need to suppress this in quiet mode as it is user initiated // we dont need to suppress this in quiet mode as it is user initiated
@ -78,7 +78,7 @@ function drawInfo() {
g.setColor("#fff"); g.setColor("#fff");
else else
g.setColor("#000"); g.setColor("#000");
g.drawString((infoData[infoMode].calc()), w/2, (3*(h-24)/4) + 24); g.drawString((infoData[infoMode].calc()), w/2, (3*(h-24)/4) + 24);
} }
} }
@ -196,7 +196,7 @@ function prevInfo() {
} }
Bangle.on('swipe', dir => { Bangle.on('swipe', dir => {
if (dir == 1) prevInfo() else nextInfo(); if (dir == 1) prevInfo(); else nextInfo();
draw(); draw();
}); });