Skip to content

Commit 4cdc0a9

Browse files
authored
Fix settings not changing threshold bug
1 parent 451afbb commit 4cdc0a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sleeplog/boot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ if (global.sleeplog.conf.enabled) {
165165
if(data.hrm){
166166

167167
if (!Bangle.isCharging()) {
168-
if (data.heartRate <= global.sleeplog.conf.hrDeepTh) {
168+
if (data.heartRate <= global.sleeplog.conf.hrmDeepTh) {
169169
data.status = 4; // deep sleep
170-
} else if (data.heartRate <= global.sleeplog.conf.hrLightTh) {
170+
} else if (data.heartRate <= global.sleeplog.conf.hrmLightTh) {
171171
data.status = 3; // light sleep
172172
} else {
173173
data.status = 2; // awake

0 commit comments

Comments
 (0)