mirror of https://github.com/espruino/BangleApps
Update widalt.wid.js
parent
0b194a2cd4
commit
030a38df0e
|
@ -11,7 +11,6 @@
|
||||||
//some other app is using the barometer - ignore new readings until our interval is up
|
//some other app is using the barometer - ignore new readings until our interval is up
|
||||||
if (Math.floor(p.altitude) != lastAlt) {
|
if (Math.floor(p.altitude) != lastAlt) {
|
||||||
lastAlt = Math.floor(p.altitude);
|
lastAlt = Math.floor(p.altitude);
|
||||||
nextUpdate = Date.now() + settings.interval;
|
|
||||||
alt = p.altitude.toFixed(0);
|
alt = p.altitude.toFixed(0);
|
||||||
WIDGETS.widalt.draw();
|
WIDGETS.widalt.draw();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue