Update app.js

master
Andy Smy 2025-05-12 18:14:58 +01:00 committed by GitHub
parent e8d355a207
commit 6b35fb5838
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -54,14 +54,11 @@ function getBattery() {
// each second (approx.)
function updateHeartRate(h) {
heartRate = h.bpm || 0;
//console.log("HRM", heartRate, (new Date()));
if(heartRate >= heartRateLimit) {
heartRateEventSeconds++;
//console.log("Heart Over", heartRate, heartRateEventSeconds);
if(heartRateEventSeconds==10) {
var timeSig = new Date();
addLog(timeSig, over, counter, "Heart Rate", ">" + heartRateLimit);
//console.log("Heart Event", heartRate, heartRateEventSeconds);
}
}
if(heartRateEventSeconds>10) {