clockinfo: Tapping Altitude now updates the reading

master
Gordon Williams 2025-07-22 14:05:23 +01:00
parent a7da1bc1dc
commit 74600dde8e
2 changed files with 3 additions and 1 deletions

View File

@ -17,4 +17,5 @@
0.16: Add BLE clkinfo entry
0.17: Fix BLE icon alignment and border on some clocks
0.18: Tweak BLE icon to add gap and ensure middle of B isn't filled
0.19: Fix Altitude ClockInfo after BLE added
0.19: Fix Altitude ClockInfo after BLE added
Tapping Altitude now updates the reading

View File

@ -157,6 +157,7 @@ exports.load = function() {
min : 0, max : settings.maxAltitude,
img : atob("GBiBAAAAAAAAAAAAAAAAAAAAAAACAAAGAAAPAAEZgAOwwAPwQAZgYAwAMBgAGBAACDAADGAABv///////wAAAAAAAAAAAAAAAAAAAA==")
}),
run : function() { alt = "--"; this.emit("redraw"); altUpdateHandler(); },
show : function() { this.interval = setInterval(altUpdateHandler, 60000); alt = "--"; altUpdateHandler(); },
hide : function() { clearInterval(this.interval); delete this.interval; },
});