From 788642404bfa90bf67973b872e1a7ae84bf113a8 Mon Sep 17 00:00:00 2001 From: adrian w kirk Date: Thu, 4 Feb 2021 01:39:43 +0000 Subject: [PATCH] Bug fix to reset_clock --- apps.json | 2 +- apps/xclock/xclock.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps.json b/apps.json index db72e1f03..9197075a7 100644 --- a/apps.json +++ b/apps.json @@ -216,7 +216,7 @@ { "id": "xclock", "name": "X Clock", "icon": "xclock.png", - "version":"0.03", + "version":"0.04", "description": "Text Readable Time", "tags": "clock", "type":"clock", diff --git a/apps/xclock/xclock.js b/apps/xclock/xclock.js index aa494ff7d..4349ec8bd 100644 --- a/apps/xclock/xclock.js +++ b/apps/xclock/xclock.js @@ -176,9 +176,10 @@ let date_formatter = new EnglishDateFormatter(); function reset_clock(){ console.log("reset_clock"); - this.hour_shift_txt.reset(); - this.min_shift_txt.reset(); - this.min_remainder_shift_txt.reset(); + var i; + for (i = 0; i < row_displays.length; i++) { + row_displays[i].reset(); + } } function draw_clock(){