Update app.js

Do not overwrite old heart rate value with '...'
master
Marco H 2021-12-10 11:39:16 +01:00 committed by GitHub
parent f3531c8160
commit 25543abb11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -103,8 +103,6 @@ function drawHeartRate(i) {
writeLine(hrtValue,i);
else
writeLine(hrtValue,i, topicColor);
} else {
writeLine("...",i);
}
lastHeartRateRowIndex = i;
}
@ -162,11 +160,11 @@ Bangle.on('lock', function(isLocked) {
hrtValue = "...";
else
hrtValueIsOld = true;
drawHeartRate();
} else {
hrtValueIsOld = true;
Bangle.setHRMPower(0,"clicompleteclk");
}
drawHeartRate();
});
Bangle.on('lcdPower',function(on) {