mirror of https://github.com/espruino/BangleApps
commit
5009f9b97a
|
@ -8,3 +8,4 @@
|
|||
0.08: Hide widgets instead of not loading them at all
|
||||
Use Clockface_menu for widgets and power saving settings
|
||||
0.09: Add default HRM value, default altitude value
|
||||
0.10: Add fastloading
|
||||
|
|
|
@ -78,8 +78,6 @@
|
|||
});
|
||||
},
|
||||
|
||||
/*
|
||||
// todo add fastloading when the memory leak is fixed
|
||||
remove: function() {
|
||||
if (this.turnOnInterval){
|
||||
clearInterval(this.turnOnInterval);
|
||||
|
@ -87,13 +85,13 @@
|
|||
}
|
||||
if (this.turnOffServiceTimeout){
|
||||
clearTimeout(this.turnOffServiceTimeout)
|
||||
delete this.turnOffServiceTimeout
|
||||
}
|
||||
turnOffServices();
|
||||
if (this.onLock) Bangle.removeListener('lock', this.onLock);
|
||||
if (this.onHRM) Bangle.removeListener('HRM', this.onHRM);
|
||||
if (this.onPressure) Bangle.removeListener('onPressure', this.onPressure);
|
||||
if (this.onPressure) Bangle.removeListener('pressure', this.onPressure);
|
||||
}
|
||||
*/
|
||||
|
||||
});
|
||||
|
||||
|
@ -173,6 +171,7 @@
|
|||
Bangle.setBarometerPower(true, "terminalclock");
|
||||
}
|
||||
if(clock.powerSave){
|
||||
if(clock.turnOffServiceTimeout) clearTimeout(clock.turnOffServiceTimeout);
|
||||
clock.turnOffServiceTimeout = setTimeout(function () {
|
||||
turnOffServices();
|
||||
}, 45000);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Terminal Clock",
|
||||
"shortName":"Terminal Clock",
|
||||
"description": "A terminal cli like clock displaying multiple sensor data",
|
||||
"version":"0.09",
|
||||
"version":"0.10",
|
||||
"icon": "app.png",
|
||||
"type": "clock",
|
||||
"tags": "clock",
|
||||
|
|
Loading…
Reference in New Issue