1
0
Fork 0

Merge pull request #2127 from lightnin/patch-1

[slash] If midnight clear the display to clean up artifacts
master
Gordon Williams 2022-09-23 08:52:46 +01:00 committed by GitHub
commit b6453d9828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View File

@ -1 +1,2 @@
0.01: First version for upload
0.02: Fix for leftover date artifacts on display.

View File

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

View File

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