Raise threshold to 90% confidence

master
Kendell R 2023-04-17 06:00:09 -04:00 committed by GitHub
parent f7d8ab1a5b
commit a67f819cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@
}
Bangle.on("health", onHealth);
Bangle.on("HRM", (h) => {
if (h.confidence > 80 && Math.abs(Bangle.getHealthStatus().bpm - h.bpm) < 1) Bangle.setHRMPower(0, "health");
if (h.confidence > 90 && Math.abs(Bangle.getHealthStatus().bpm - h.bpm) < 1) Bangle.setHRMPower(0, "health");
});
if (Bangle.getHealthStatus().bpmConfidence > 80) return;
if (Bangle.getHealthStatus().bpmConfidence > 90) return;
onHealth();
} else Bangle.setHRMPower(!!hrm, "health");
})();