From 74600dde8eddc8cc24e5463f32a2fa9250f3475c Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Tue, 22 Jul 2025 14:05:23 +0100 Subject: [PATCH] clockinfo: Tapping Altitude now updates the reading --- apps/clock_info/ChangeLog | 3 ++- apps/clock_info/lib.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/clock_info/ChangeLog b/apps/clock_info/ChangeLog index eef68647a..702d78bf1 100644 --- a/apps/clock_info/ChangeLog +++ b/apps/clock_info/ChangeLog @@ -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 \ No newline at end of file +0.19: Fix Altitude ClockInfo after BLE added + Tapping Altitude now updates the reading \ No newline at end of file diff --git a/apps/clock_info/lib.js b/apps/clock_info/lib.js index 40e989ffe..e0f48038b 100644 --- a/apps/clock_info/lib.js +++ b/apps/clock_info/lib.js @@ -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; }, });