Update app.js

master
Andy Smy 2025-04-18 17:42:21 +01:00 committed by GitHub
parent 013812a3bf
commit 573f9d2907
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -37,6 +37,7 @@ function countDown(dir) {
if(dir!=0) {
ballTimes.push(timeSig.getTime());
Bangle.setLCDPower(1);
if(dir>0) {
addLog(timeSig, over, counter, "Ball", formatDuration(deadDuration));
} else {
@ -96,6 +97,7 @@ function countDown(dir) {
return;
}
}
if(counter<6) {
g.clear(1); // clear screen and reset graphics state
g.setFontAlign(0,0); // center font
g.setFont("Vector",48); // vector font, 80px
@ -104,9 +106,8 @@ function countDown(dir) {
g.drawString(over + "." + counter, g.getWidth()/1.89, 120);
g.setFont("Vector",18);
g.drawString("..." + formatDuration(deadDuration), g.getWidth()/1.89, 166);
}
// optional - this keeps the watch LCD lit up
Bangle.setLCDPower(1);
}
function startOver() {