Merge pull request #2582 from Stiralbios/master

[TerminalClock] Add fastloading
pull/2590/head
Gordon Williams 2023-02-20 13:07:18 +00:00 committed by GitHub
commit 5009f9b97a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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);

View File

@ -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",