1
0
Fork 0

sleepphasealarm: Update app.js

Make app compatible with _E.showMessage(...)_ on new firmware:
- adjust actual time height to be drawn above the alarm time from _E.showMessage(...)_
master
storm64 2022-01-25 00:39:37 +01:00 committed by GitHub
parent 5718e31d3c
commit 67b10536c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ function drawApp() {
if (nowMinute < 10) nowMinute = "0" + nowMinute; if (nowMinute < 10) nowMinute = "0" + nowMinute;
if (nowSecond < 10) nowSecond = "0" + nowSecond; if (nowSecond < 10) nowSecond = "0" + nowSecond;
const time = nowHour + ":" + nowMinute + (BANGLEJS2 ? "" : ":" + nowSecond); //# hide seconds on bangle 2 const time = nowHour + ":" + nowMinute + (BANGLEJS2 ? "" : ":" + nowSecond); //# hide seconds on bangle 2
drawString(time, BANGLEJS2 ? 85 : 140); //# remove x, adjust height drawString(time, BANGLEJS2 ? 85 : 105); //# remove x, adjust height for bangle 2 an newer firmware
} }
} }