From a67f819cf3adaf63e801aa10c497042cff619a3a Mon Sep 17 00:00:00 2001 From: Kendell R Date: Mon, 17 Apr 2023 06:00:09 -0400 Subject: [PATCH] Raise threshold to 90% confidence --- apps/health/boot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/health/boot.js b/apps/health/boot.js index e369cb5bd..62e8b87ab 100644 --- a/apps/health/boot.js +++ b/apps/health/boot.js @@ -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"); })();