diff --git a/apps/sleeplog/boot.js b/apps/sleeplog/boot.js index 67a852132..dc0cd5ae1 100644 --- a/apps/sleeplog/boot.js +++ b/apps/sleeplog/boot.js @@ -13,7 +13,7 @@ global.sleeplog = { minConsec: 18E5, // [ms] minimal time to count for consecutive sleep deepTh: 100, // threshold for deep sleep lightTh: 200, // threshold for light sleep - wearTemp: null, // temperature threshold to count as worn + wearTemp: 19.5, // temperature threshold to count as worn }, require("Storage").readJSON("sleeplog.json", true) || {}) }; @@ -180,7 +180,7 @@ if (sleeplog.conf.enabled) { // check wearing status either based on HRM or temperature as set in settings checkIsWearing: function(returnFn, data) { - if (this.conf.wearTemp !== null) { + if (this.conf.wearTemp !== 19.5) { return returnFn(!Bangle.isCharging() && E.getTemperature() >= this.conf.wearTemp, data); } diff --git a/apps/sleeplog/settings.js b/apps/sleeplog/settings.js index e3811624a..736fead05 100644 --- a/apps/sleeplog/settings.js +++ b/apps/sleeplog/settings.js @@ -13,7 +13,7 @@ minConsec: 18E5, // [ms] minimal time to count for consecutive sleep deepTh: 100, // threshold for deep sleep lightTh: 200, // threshold for light sleep - wearTemp: null, // temperature threshold to count as worn + wearTemp: 19.5, // temperature threshold to count as worn // app settings breakToD: 12, // [h] time of day when to start/end graphs appTimeout: 0 // lock and backlight timeouts for the app