turns out the two bpms can be a bit off

pull/2691/head
Kendell R 2023-04-13 09:09:44 -04:00 committed by GitHub
parent a21b6827ff
commit f7d8ab1a5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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