diff --git a/apps/sleeplog/ChangeLog b/apps/sleeplog/ChangeLog index 839a0742f8..03571a8450 100644 --- a/apps/sleeplog/ChangeLog +++ b/apps/sleeplog/ChangeLog @@ -17,3 +17,4 @@ 0.19: Write sleep state into health event's .activity field 0.20: Increase default sleep thresholds, tweak settings to allow higher ones to be chosen 0.21: Use HRM data is polling is enabled, and add appropriate thresholds in settings. Change settings to feel more intuitive, rather than copied settings in different pages. +0.22: Fix bug with HRM threshold not updating diff --git a/apps/sleeplog/boot.js b/apps/sleeplog/boot.js index f85ad3fa8a..b7cd11d2b7 100644 --- a/apps/sleeplog/boot.js +++ b/apps/sleeplog/boot.js @@ -165,9 +165,9 @@ if (global.sleeplog.conf.enabled) { if(data.hrm){ if (!Bangle.isCharging()) { - if (data.heartRate <= global.sleeplog.conf.hrDeepTh) { + if (data.heartRate <= global.sleeplog.conf.hrmDeepTh) { data.status = 4; // deep sleep - } else if (data.heartRate <= global.sleeplog.conf.hrLightTh) { + } else if (data.heartRate <= global.sleeplog.conf.hrmLightTh) { data.status = 3; // light sleep } else { data.status = 2; // awake diff --git a/apps/sleeplog/metadata.json b/apps/sleeplog/metadata.json index ea4659cd14..893d1811d1 100644 --- a/apps/sleeplog/metadata.json +++ b/apps/sleeplog/metadata.json @@ -2,8 +2,8 @@ "id":"sleeplog", "name":"Sleep Log", "shortName": "SleepLog", - "version": "0.21", - "description": "Log and view your sleeping habits. This app uses built in movement calculations, or HRM data is present. View data from Bangle, or from the web app.", + "version": "0.22", + "description": "Log and view your sleeping habits. This app uses built in movement calculations, or HRM data, if enabled. View data from Bangle.js, or from the web app.", "icon": "app.png", "type": "app", "tags": "tool,boot,health",