From f7d8ab1a5bff7df77bbf17de9b64ba1ea6cf0e77 Mon Sep 17 00:00:00 2001 From: Kendell R Date: Thu, 13 Apr 2023 09:09:44 -0400 Subject: [PATCH] turns out the two bpms can be a bit off --- apps/health/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/health/boot.js b/apps/health/boot.js index c5751bf7d..e369cb5bd 100644 --- a/apps/health/boot.js +++ b/apps/health/boot.js @@ -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();