From 2254fdd04911b6f71993bdf9686eb27683b4ed66 Mon Sep 17 00:00:00 2001 From: Amos Blanton Date: Sun, 18 Sep 2022 09:28:11 +0000 Subject: [PATCH 1/3] If midnight clear the display to clean up artifacts Since slash is (wisely) very conservative about clearing / redrawing, artifacts from past dates that aren't overwritten tend to stack up. On my watch now where it says "Sun 9/18" there is some left over "T" from last Thursday sticking out to the left of the "S" in "Sun", and some leftover "6" sticking out to the right of the "8" in "18" from two days ago. This should clear everything once a day at midnight so these artifacts get cleared out. --- apps/slash/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/slash/app.js b/apps/slash/app.js index f548bcaf7..c594e5916 100644 --- a/apps/slash/app.js +++ b/apps/slash/app.js @@ -57,6 +57,10 @@ function draw() { var minutes = ("0"+m).substr(-2); g.reset(); + // If midnight clear display to remove day / date artifacts + if (h == 0 && m == 0) + g.clear(); + // Convert to 12hr time mode if (is12Hour && h > 12) { h = h - 12; From c0b49b33598040b9a6517eda12239de562cf0e8e Mon Sep 17 00:00:00 2001 From: Amos Blanton Date: Fri, 23 Sep 2022 07:16:58 +0000 Subject: [PATCH 2/3] Update ChangeLog --- apps/slash/ChangeLog | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/slash/ChangeLog b/apps/slash/ChangeLog index f3fae1785..734df26dd 100644 --- a/apps/slash/ChangeLog +++ b/apps/slash/ChangeLog @@ -1 +1,2 @@ 0.01: First version for upload +0.02: Fix for leftover date artifacts on display. From 2e8bb01e55df47dda52851c0921b61291df86a8c Mon Sep 17 00:00:00 2001 From: Amos Blanton Date: Fri, 23 Sep 2022 07:17:52 +0000 Subject: [PATCH 3/3] Update metadata.json --- apps/slash/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/slash/metadata.json b/apps/slash/metadata.json index 6bdb4cd53..b08aa7c44 100644 --- a/apps/slash/metadata.json +++ b/apps/slash/metadata.json @@ -4,7 +4,7 @@ "shortName":"Slash", "icon": "slash.png", "screenshots": [{"url":"screenshot.png"}], - "version":"0.01", + "version":"0.02", "description": "Slash Watch based on Pebble watch face by Nikki.", "tags": "clock", "type": "clock",